Skip to content

Commit e4e1a04

Browse files
committed
fix race
1 parent 5231bef commit e4e1a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/workspaceapps/db_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func Test_ResolveRequest(t *testing.T) {
320320
require.Len(t, connLogger.ConnectionLogs(), 1)
321321

322322
var parsedToken workspaceapps.SignedToken
323-
err = jwtutils.Verify(ctx, api.AppSigningKeyCache, cookie.Value, &parsedToken)
323+
err := jwtutils.Verify(ctx, api.AppSigningKeyCache, cookie.Value, &parsedToken)
324324
require.NoError(t, err)
325325
// normalize expiry
326326
require.WithinDuration(t, token.Expiry.Time(), parsedToken.Expiry.Time(), 2*time.Second)

0 commit comments

Comments
 (0)