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

Commit9d8681b

Browse files
committed
test pubsub
1 parent02258ee commit9d8681b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎coderd/database/awsiamrds/awsiamrds_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,9 @@ func TestDriver(t *testing.T) {
6363
err=ps.Publish("test", []byte("hello"))
6464
require.NoError(t,err)
6565

66-
<-gotChan
66+
select {
67+
case<-gotChan:
68+
case<-ctx.Done():
69+
require.Fail(t,"timed out waiting for message")
70+
}
6771
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp