From bd4f6524cbfc95591450491b76b824e0ff75f9a1 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 12 Jun 2023 10:48:16 +0200 Subject: [PATCH] Include remaining hellos in message if error occurred. --- testclient_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testclient_test.go b/testclient_test.go index 86560c0..2f2fde7 100644 --- a/testclient_test.go +++ b/testclient_test.go @@ -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 {