Skip to content

Commit

Permalink
Try to increase the delay
Browse files Browse the repository at this point in the history
  • Loading branch information
itaihanski committed Mar 3, 2024
1 parent 6e0a8f6 commit 3b3617a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public async Task Authentication_MeAndLogout(bool logoutAll)
else await _descopeClient.Auth.LogOutAll(testUser.AuthInfo.refreshJwt!);

// Try me again
await Task.Delay(200);
await Task.Delay(500);
async Task Act() => await _descopeClient.Auth.Me(testUser.AuthInfo.refreshJwt!);
DescopeException result = await Assert.ThrowsAsync<DescopeException>(Act);

Check failure on line 138 in Descope.Test/IntegrationTests/Authentication/AuthenticationTests.cs

View workflow job for this annotation

GitHub Actions / .NET Tests

Descope.Test.Integration.AuthenticationTests ► Authentication_MeAndLogout(logoutAll: False)

Failed test found in: TestResults-6.x/_fv-az256-975_2024-03-03_14_10_16.trx Error: Assert.Throws() Failure: No exception was thrown Expected: typeof(Descope.DescopeException)
Raw output
Assert.Throws() Failure: No exception was thrown
Expected: typeof(Descope.DescopeException)
   at Descope.Test.Integration.AuthenticationTests.Authentication_MeAndLogout(Boolean logoutAll) in /home/runner/work/descope-dotnet/descope-dotnet/Descope.Test/IntegrationTests/Authentication/AuthenticationTests.cs:line 138
   at Descope.Test.Integration.AuthenticationTests.Authentication_MeAndLogout(Boolean logoutAll) in /home/runner/work/descope-dotnet/descope-dotnet/Descope.Test/IntegrationTests/Authentication/AuthenticationTests.cs:line 146
--- End of stack trace from previous location ---
Assert.Contains("Expired due to logout", result.Message);
Expand Down

0 comments on commit 3b3617a

Please sign in to comment.