Skip to content

Commit

Permalink
fix: broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigBalthazar committed Aug 30, 2023
1 parent 06ae7f6 commit 7833c7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sync/handler_hello_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestParsingHelloMessages(t *testing.T) {
func TestSendingHelloMessage(t *testing.T) {
td := setup(t, nil)

to := td.RandomPeerID()
to := td.RandPeerID()
td.sync.sayHello(true, to)

bdl := td.shouldPublishMessageWithThisType(t, td.network, message.TypeHello)
Expand Down
4 changes: 2 additions & 2 deletions sync/peerset/peer_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ func TestPeerSet(t *testing.T) {
})

t.Run("Testing GetPeer", func(t *testing.T) {
p := peerSet.GetPeer(peer.ID("connected"))
p := peerSet.GetPeer(pid2)
assert.Equal(t, pid2, p.PeerID)
assert.Equal(t, StatusCodeKnown, p.Status)

p = peerSet.GetPeer(peer.ID("unknown"))
p = peerSet.GetPeer(ts.RandPeerID())
assert.Equal(t, peer.ID(""), p.PeerID)
assert.Equal(t, StatusCodeUnknown, p.Status)
})
Expand Down

0 comments on commit 7833c7b

Please sign in to comment.