mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-30 02:20:37 +02:00
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:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user