Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit c47982f

Browse files
committed
first check error, then value in tests
1 parent 35dd31f commit c47982f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ func TestPubSub(t *testing.T) {
145145
r, err := sub.Next()
146146
t.Log("next: done. ")
147147

148-
is.NotNil(r)
149148
is.Nil(err)
149+
is.NotNil(r)
150150
is.Equal(r.DataString(), "Hello World!")
151151

152152
sub2, err := s.PubSubSubscribe(topic)

0 commit comments

Comments
 (0)