Skip to content

Commit 542e632

Browse files
committed
Fix test race
1 parent 22ff6c8 commit 542e632

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/coderd/oauth2_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ func TestOAuth2ProviderTokenExchange(t *testing.T) {
690690
t.Parallel()
691691
ctx := testutil.Context(t, testutil.WaitLong)
692692

693+
// Need a new error so tests are not sharing it.
694+
var err error
695+
693696
// Each test gets its own user, since we allow only one code per user and
694697
// app at a time and running tests in parallel could clobber each other.
695698
userClient, user := coderdtest.CreateAnotherUser(t, ownerClient, owner.OrganizationID)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy