Skip to content

Commit 7ff0a9c

Browse files
committed
2 parents 28c65d9 + b79586e commit 7ff0a9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/TestIdPCore/Controllers/AuthController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ private Saml2Configuration GetRpSaml2Configuration(RelyingParty relyingParty = n
252252

253253
private async Task<RelyingParty> ValidateRelyingParty(string issuer)
254254
{
255-
using var cancellationTokenSource = new CancellationTokenSource(3 * 1000); // Cancel after 3 seconds.
256-
await Task.WhenAll(settings.RelyingParties.Select(rp => LoadRelyingPartyAsync(rp, cancellationTokenSource)));
255+
// Create a cancellation token for each Relying Party call
256+
await Task.WhenAll(settings.RelyingParties.Select(rp => LoadRelyingPartyAsync(rp, new CancellationTokenSource(1 * 1000))));
257257

258258
return settings.RelyingParties.Where(rp => rp.Issuer != null && rp.Issuer.Equals(issuer, StringComparison.InvariantCultureIgnoreCase)).Single();
259259
}
@@ -298,4 +298,4 @@ private IEnumerable<Claim> CreateTestUserClaims(string selectedNameID)
298298
yield return new Claim(ClaimTypes.Email, $"{userId}@someemail.test");
299299
}
300300
}
301-
}
301+
}

0 commit comments

Comments
 (0)