Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mleku committed Jan 11, 2024
1 parent 8f8d2ad commit dbef79b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/go-nostr/relays/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestPublish(t *testing.T) {

// connect a client and send the text note
rl := MustRelayConnect(ws.URL)
e := rl.Publish(context.Bg(), textNote)
e := rl.Publish(context.Bg(), &textNote)
if e != nil {
t.Errorf("publish should have succeeded")
}
Expand Down Expand Up @@ -91,7 +91,7 @@ func TestPublishBlocked(t *testing.T) {

// connect a client and send a text note
rl := MustRelayConnect(ws.URL)
e := rl.Publish(context.Bg(), textNote)
e := rl.Publish(context.Bg(), &textNote)
if e == nil {
t.Errorf("should have failed to publish")
}
Expand All @@ -113,7 +113,7 @@ func TestPublishWriteFailed(t *testing.T) {
rl := MustRelayConnect(ws.URL)
// Force brief period of time so that publish always fails on closed socket.
time.Sleep(1 * time.Millisecond)
e := rl.Publish(context.Bg(), textNote)
e := rl.Publish(context.Bg(), &textNote)
if e == nil {
t.Errorf("should have failed to publish")
}
Expand Down

0 comments on commit dbef79b

Please sign in to comment.