From e17f6fa90759b0ee9bfc37e5c6e435bbc446e9dc Mon Sep 17 00:00:00 2001
From: Tanay Parikh <TanayParikh@users.noreply.github.com>
Date: Wed, 28 Apr 2021 16:59:05 -0700
Subject: [PATCH] Remove un-needed test (#32256)

This test was originally skipped due to https://github.com/dotnet/aspnetcore/issues/12357. That issue was subsequently closed as "there is no real need for this" so deleting this test as well.
---
 .../Infrastructure/DotNetDispatcherTest.cs     | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs
index ddcfe142461..8a1de8c4fc8 100644
--- a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs
+++ b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs
@@ -299,24 +299,6 @@ namespace Microsoft.JSInterop.Infrastructure
             Assert.Equal(expected, ex.Message);
         }
 
-        [Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/12357")]
-        public void EndInvoke_AfterCancel()
-        {
-            // Arrange
-            var jsRuntime = new TestJSRuntime();
-            var testDTO = new TestDTO { StringVal = "Hello", IntVal = 4 };
-            var cts = new CancellationTokenSource();
-            var task = jsRuntime.InvokeAsync<TestDTO>("unimportant", cts.Token);
-            var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.LastInvocationAsyncHandle, true, testDTO }, jsRuntime.JsonSerializerOptions);
-
-            // Act
-            cts.Cancel();
-            DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson);
-
-            // Assert
-            Assert.True(task.IsCanceled);
-        }
-
         [Fact]
         public async Task EndInvoke_WithNullError()
         {
-- 
GitLab