Skip to content

Commit

Permalink
Fix TXM flakey test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimriou committed Oct 9, 2024
1 parent 002296d commit 5cd49a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-humans-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

Fix TXM flakey test #internal
4 changes: 2 additions & 2 deletions core/chains/evm/txmgr/txmgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ func TestTxm_Lifecycle(t *testing.T) {
head := cltest.Head(42)
finalizedHead := cltest.Head(0)

ethClient.On("HeadByNumber", mock.Anything, mock.Anything).Return(head, nil).Once()
ethClient.On("HeadByNumber", mock.Anything, mock.Anything).Return(finalizedHead, nil).Once()
ethClient.On("HeadByNumber", mock.Anything, mock.Anything).Return(head, nil)
ethClient.On("HeadByNumber", mock.Anything, mock.Anything).Return(finalizedHead, nil)

keyChangeCh := make(chan struct{})
unsub := cltest.NewAwaiter()
Expand Down

0 comments on commit 5cd49a0

Please sign in to comment.