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

Lines changed: 0 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy