Skip to content

Commit

Permalink
chore: increase timeout of server trust message test
Browse files Browse the repository at this point in the history
Test_initialize_handlesUntrustedFoldersWhenAuthenticated is failing in
CI but not locally. This is likely due to too-short a timeout waiting
for an async condition.

5s timeout chosen based on similar increase in a similar test in
68b6aa8.
  • Loading branch information
cmars committed Oct 11, 2024
1 parent b3d2d76 commit 0263612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ func Test_initialize_handlesUntrustedFoldersWhenAuthenticated(t *testing.T) {
}

assert.Nil(t, err)
assert.Eventually(t, func() bool { return checkTrustMessageRequest(jsonRPCRecorder) }, time.Second, time.Millisecond)
assert.Eventually(t, func() bool { return checkTrustMessageRequest(jsonRPCRecorder) }, time.Second*5, time.Millisecond)
}

func Test_initialize_doesnotHandleUntrustedFolders(t *testing.T) {
Expand Down

0 comments on commit 0263612

Please sign in to comment.