Include remaining hellos in message if error occurred.

This commit is contained in:
Joachim Bauch 2023-06-12 10:48:16 +02:00
parent 2fdd346766
commit bd4f6524cb
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -770,7 +770,7 @@ func (c *TestClient) RunUntilJoinedAndReturn(ctx context.Context, hello ...*Hell
for len(hellos) > 0 {
message, err := c.RunUntilMessage(ctx)
if err != nil {
return nil, nil, err
return nil, nil, fmt.Errorf("got error while waiting for %+v: %w", hellos, err)
}
if err := checkMessageType(message, "event"); err != nil {