Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0f5116

Browse files
committed
test: Regenerate GitSSHKey flake when comparing times (#1235)
This is a crazy one! The in-memory DB is fast, which allows the sameexact timestamp to occur for regenerating the key!See:https://github.com/coder/coder/runs/6234173911?check_suite_focus=true#step:9:82
1 parent9cb5fa9 commita0f5116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/gitsshkey_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestGitSSHKey(t *testing.T) {
7070
require.NotEmpty(t,key1.PublicKey)
7171
key2,err:=client.RegenerateGitSSHKey(ctx,res.UserID)
7272
require.NoError(t,err)
73-
require.Greater(t,key2.UpdatedAt,key1.UpdatedAt)
73+
require.GreaterOrEqual(t,key2.UpdatedAt,key1.UpdatedAt)
7474
require.NotEmpty(t,key2.PublicKey)
7575
require.NotEqual(t,key2.PublicKey,key1.PublicKey)
7676
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp