diff --git a/testclient_test.go b/testclient_test.go index e10d8c7..e3cc012 100644 --- a/testclient_test.go +++ b/testclient_test.go @@ -886,7 +886,9 @@ func (c *TestClient) RunUntilJoinedAndReturn(ctx context.Context, hello ...*Hell } } } - c.assert.True(found, "expected one of the passed hello sessions, got %+v", message.Event.Join) + if !c.assert.True(found, "expected one of the passed hello sessions, got %+v", message.Event.Join) { + break + } } } return received, ignored, true