fix test that was broken when the context passed to RelayConnect() became the relay context for its full timeline.

30e0e1040a
This commit is contained in:
fiatjaf
2023-04-06 16:22:18 -03:00
parent ef428ff39f
commit a666994ae7

View File

@ -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())
}