Skip to content

Commit 9d8681b

Browse files
committed
test pubsub
1 parent 02258ee commit 9d8681b

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)