Skip to content

Commit 601453b

Browse files
author
Matt Brittan
committed
Resolve issues in fvt_client_test
An error in reporting result and Test_cleanUpMids_2 intermittently failed due to race.
1 parent 439e2ab commit 601453b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fvt_client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ func Test_CallbackOverrun(t *testing.T) {
985985

986986
err := <-handlerError
987987
if err != nil {
988-
t.Fatalf(err.Error())
988+
t.Fatal(err.Error())
989989
}
990990

991991
time.Sleep(time.Microsecond) // Allow a little time in case the handler returning after connection dropped causes an issue (panic)
@@ -1206,7 +1206,7 @@ func Test_cleanUpMids_2(t *testing.T) {
12061206
t.Fatalf("Should be a token in the messageIDs, none found")
12071207
}
12081208
// fmt.Println("Disconnecting", len(cl.messageIds.index))
1209-
c.Disconnect(0)
1209+
c.Disconnect(500) // Wait half a second to allow operation to complete
12101210

12111211
fmt.Println("Wait on Token")
12121212
// We should be able to wait on this token without any issue

0 commit comments

Comments
 (0)