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

30e0e1040a8ee667508a538ac896d24f6ceaa8cd
This commit is contained in:
fiatjaf 2023-04-06 16:22:18 -03:00
parent ef428ff39f
commit a666994ae7
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

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