Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ef3a7d

Browse files
committedOct 8, 2020
Do not expect success on token timeout
The retry logic should contain no expectations because it's expected to fail sometimes and retry in such cases.
1 parent 008183c commit 3ef3a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎system_tests/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ func publishAndConsumeMQTTMsg(hostname, nodePort, username, password string, ove
749749
fmt.Printf("Attempt #%d to connect using MQTT\n", retry)
750750
token = c.Connect()
751751
// Waits for the network request to reach the destination and receive a response
752-
Expect(token.WaitTimeout(3 * time.Second)).To(BeTrue())
752+
token.WaitTimeout(3 * time.Second)
753753

754754
if err := token.Error(); err == nil {
755755
break

0 commit comments

Comments
 (0)
Please sign in to comment.