From e0345263b72d632122d02f6b6b6a47d57be08228 Mon Sep 17 00:00:00 2001 From: Alan Parra Date: Fri, 19 Jan 2024 15:55:25 -0300 Subject: [PATCH] fix: Use random scopes on TestIdentityService_UpsertGlobalWebauthnSessionData_maxLimit --- lib/services/local/users_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/services/local/users_test.go b/lib/services/local/users_test.go index 187fa4c0dbfe7..1749e6b9ec5c0 100644 --- a/lib/services/local/users_test.go +++ b/lib/services/local/users_test.go @@ -781,8 +781,10 @@ func TestIdentityService_UpsertGlobalWebauthnSessionData_maxLimit(t *testing.T) local.SessionDataLimiter.Clock = fakeClock local.SessionDataLimiter.ResetPeriod = period - const scopeLogin = "login" - const scopeOther = "other" + // Add some randomness to the scopes to avoid high -count runs tripping on + // each other. + scopeLogin := "login" + uuid.NewString() + scopeOther := "other" + uuid.NewString() const id1 = "challenge1" const id2 = "challenge2" const id3 = "challenge3"