fix e2e generate test

This commit is contained in:
Callum Waters
2022-11-16 16:33:19 +01:00
parent a9ff8da368
commit 172e516427
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func WaitForOneEvent(c EventsClient, evtTyp string, timeout time.Duration) (type
}
// make sure to unregister after the test is over
defer func() {
if deferErr := c.UnsubscribeAll(context.Background(), subscriber); deferErr != nil {
if deferErr := c.UnsubscribeAll(ctx, subscriber); deferErr != nil {
panic(deferErr)
}
}()