Skip to content

Commit

Permalink
test: Change desired log message for poll sync
Browse files Browse the repository at this point in the history
  • Loading branch information
nepet committed Oct 15, 2022
1 parent fd1b430 commit ae1aa11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions test/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,6 @@ func clnclnElementsSetup(t *testing.T, fundAmt uint64) (*testframework.BitcoinNo
t.Fatalf("ListPeers %v", err)
}

lightningds[1].WaitForLog(fmt.Sprintf("From: %s got msgtype: a463", lightningds[0].Info.Id), testframework.TIMEOUT)
lightningds[0].WaitForLog(fmt.Sprintf("From: %s got msgtype: a463", lightningds[1].Info.Id), testframework.TIMEOUT)

syncPoll(&clnPollableNode{lightningds[0]}, &clnPollableNode{lightningds[1]})

return bitcoind, liquidd, []*CLightningNodeWithLiquid{{lightningds[0]}, {lightningds[1]}}, scid
Expand Down
4 changes: 2 additions & 2 deletions test/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (n *clnPollableNode) TriggerPoll() error {
}

func (n *clnPollableNode) AwaitPollFrom(node pollableNode) error {
return n.WaitForLog(fmt.Sprintf("From: %s got msgtype: a463", node.GetId()), testframework.TIMEOUT)
return n.WaitForLog(fmt.Sprintf("Received poll from peer %s", node.GetId()), testframework.TIMEOUT)
}

type peerswapPollableNode struct {
Expand All @@ -132,7 +132,7 @@ func (n *peerswapPollableNode) TriggerPoll() error {
}

func (n *peerswapPollableNode) AwaitPollFrom(node pollableNode) error {
return n.WaitForLog(fmt.Sprintf("From: %s got msgtype: a463", node.GetId()), testframework.TIMEOUT)
return n.WaitForLog(fmt.Sprintf("Received poll from peer %s", node.GetId()), testframework.TIMEOUT)
}

func syncPoll(a, b pollableNode) error {
Expand Down

0 comments on commit ae1aa11

Please sign in to comment.