Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrun5 committed Apr 10, 2024
1 parent 4d91e15 commit 5986311
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions relayer/relayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func (s *RouteTestSuite) TestReceiveMessageFails() {

func (s *RouteTestSuite) TestAvoidWriteWithoutProposals() {
s.mockRelayedChain.EXPECT().ReceiveMessage(gomock.Any()).Return(nil, nil)
s.mockRelayedChain.EXPECT().DomainID().Return(uint8(1))
chains := make(map[uint8]RelayedChain)
chains[1] = s.mockRelayedChain
relayer := NewRelayer(
Expand Down Expand Up @@ -105,6 +106,7 @@ func (s *RouteTestSuite) TestWritesToChain() {
props[0] = prop
s.mockRelayedChain.EXPECT().ReceiveMessage(gomock.Any()).Return(prop, nil)
s.mockRelayedChain.EXPECT().Write(props).Return(nil)
s.mockRelayedChain.EXPECT().DomainID().Return(uint8(1)).Times(1)
chains := make(map[uint8]RelayedChain)
chains[1] = s.mockRelayedChain
relayer := NewRelayer(
Expand Down

0 comments on commit 5986311

Please sign in to comment.