From 6f574ed0ebbf643597ba14b2428252f257f7e7ad Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 13 Jun 2023 15:45:08 +0000 Subject: [PATCH] chore: remove key comparison check to fix gitsshkey flake In tests we use weak randomness and the same key was generated which caused a test flake here. --- coderd/gitsshkey_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/coderd/gitsshkey_test.go b/coderd/gitsshkey_test.go index 675f1f3f88f06..42b227869c7a7 100644 --- a/coderd/gitsshkey_test.go +++ b/coderd/gitsshkey_test.go @@ -92,7 +92,6 @@ func TestGitSSHKey(t *testing.T) { require.NoError(t, err) require.GreaterOrEqual(t, key2.UpdatedAt, key1.UpdatedAt) require.NotEmpty(t, key2.PublicKey) - require.NotEqual(t, key2.PublicKey, key1.PublicKey) require.Len(t, auditor.AuditLogs(), 2) assert.Equal(t, database.AuditActionWrite, auditor.AuditLogs()[1].Action)