From a666994ae74d2cf48b59c0ef5c80d021e2f2018c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 6 Apr 2023 16:22:18 -0300 Subject: [PATCH] fix test that was broken when the context passed to RelayConnect() became the relay context for its full timeline. 30e0e1040a8ee667508a538ac896d24f6ceaa8cd --- relay_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/relay_test.go b/relay_test.go index 1d656c5..d381f57 100644 --- a/relay_test.go +++ b/relay_test.go @@ -178,9 +178,7 @@ func makeKeyPair(t *testing.T) (priv, pub string) { } func mustRelayConnect(url string) *Relay { - ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second) - defer cancel() - rl, err := RelayConnect(ctx, url) + rl, err := RelayConnect(context.Background(), url) if err != nil { panic(err.Error()) }