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

+3
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)