mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
test: data race for TestAIGatewayKeysTableConstraints - shadowed error (#25980)
Closes https://github.com/coder/coder/issues/25979 error is shadowed and shared by parallel subtests
This commit is contained in:
@@ -14828,7 +14828,7 @@ func TestAIGatewayKeysTableConstraints(t *testing.T) {
|
||||
|
||||
ctx := testutil.Context(t, testutil.WaitShort)
|
||||
|
||||
_, err = db.InsertAIGatewayKey(ctx, tc.params)
|
||||
_, err := db.InsertAIGatewayKey(ctx, tc.params)
|
||||
require.Error(t, err)
|
||||
requireAIGatewayKeysViolation(t, err, tc.expectUniqueErr, tc.expectCheckErr)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user