Break loop when looking for joined events if no hello matched.

This commit is contained in:
Joachim Bauch 2025-11-24 15:07:00 +01:00
commit aefa5c9e36
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -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