Skip to content

Commit 2495386

Browse files
authored
chore: remove key comparison check to fix gitsshkey flake (coder#8002)
In tests we use weak randomness and the same key was generated which caused a test flake here.
1 parent 75078fa commit 2495386

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

coderd/gitsshkey_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ func TestGitSSHKey(t *testing.T) {
9292
require.NoError(t, err)
9393
require.GreaterOrEqual(t, key2.UpdatedAt, key1.UpdatedAt)
9494
require.NotEmpty(t, key2.PublicKey)
95-
require.NotEqual(t, key2.PublicKey, key1.PublicKey)
9695

9796
require.Len(t, auditor.AuditLogs(), 2)
9897
assert.Equal(t, database.AuditActionWrite, auditor.AuditLogs()[1].Action)

0 commit comments

Comments
 (0)