Skip to content

Commit a8ca060

Browse files
committed
Remove hanging test
1 parent 0bc49d0 commit a8ca060

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

GitHubExtension.Test/Controls/SignInFormTest.cs

-26
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,4 @@ await Assert.ThrowsExceptionAsync<InvalidOperationException>(async () =>
4848
await Task.Run(() => developerIdProvider.HandleOauthRedirection(authorizationResponse));
4949
});
5050
}
51-
52-
[TestMethod]
53-
public async Task LoginNewDeveloperIdAsync_ShouldThrowInvalidOperationException_OnTimeout()
54-
{
55-
// Arrange
56-
var mockGitHubClient = new Mock<IGitHubClient>();
57-
var mockOauthClient = new Mock<IOauthClient>();
58-
59-
mockGitHubClient.Setup(client => client.Oauth).Returns(mockOauthClient.Object);
60-
61-
mockOauthClient
62-
.Setup(oauth => oauth.CreateAccessToken(It.IsAny<OauthTokenRequest>()))
63-
.Returns(async () =>
64-
{
65-
await Task.Delay(TimeSpan.FromSeconds(10)); // Simulate delay longer than timeout
66-
return new OauthToken();
67-
});
68-
69-
var developerIdProvider = new DeveloperIdProvider();
70-
71-
// Act & Assert
72-
await Assert.ThrowsExceptionAsync<InvalidOperationException>(async () =>
73-
{
74-
await developerIdProvider.LoginNewDeveloperIdAsync();
75-
});
76-
}
7751
}

0 commit comments

Comments
 (0)