Skip to content

Commit 0bd27b7

Browse files
committed
Add more assertion descriptions to mqtt system tests
1 parent 0684c12 commit 0bd27b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system_tests/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,8 @@ func publishAndConsumeMQTTMsg(hostname, port, username, password string, overWeb
871871
}, 10 * time.Second).Should(BeTrue(), "Expect to receive message")
872872

873873
token = c.Unsubscribe(topic)
874-
ExpectWithOffset(1, token.Wait()).To(BeTrue())
875-
ExpectWithOffset(1, token.Error()).ToNot(HaveOccurred())
874+
ExpectWithOffset(1, token.Wait()).To(BeTrue(), "Unsubscribe token should return true")
875+
ExpectWithOffset(1, token.Error()).ToNot(HaveOccurred(), "Unsubscribe token received error")
876876

877877
c.Disconnect(250)
878878
}

0 commit comments

Comments
 (0)