Skip to content

Commit

Permalink
fix: add expected mock return
Browse files Browse the repository at this point in the history
  • Loading branch information
wesl-ee committed Sep 16, 2024
1 parent ceb671d commit d6ef925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/servers/oracle/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func (s *ServerTestSuite) TestOracleMarketMap() {
expectedJSON, err := dummyMarketMap.Marshal()
_ = expectedJSON
s.Require().NoError(err)
s.mockOracle.EXPECT().IsRunning().Return(true).Once()
s.mockOracle.On("GetMarketMap", mock.Anything).Return(dummyMarketMap).Once()

res, err := s.client.MarketMap(context.Background(), &stypes.QueryMarketMapRequest{})
Expand Down

0 comments on commit d6ef925

Please sign in to comment.