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:
Steven Masley
2026-06-02 09:02:29 -05:00
committed by GitHub
parent eea427f288
commit d2697dc5b0
+1 -1
View File
@@ -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)
})