Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMashukov committed Jul 5, 2024
1 parent d3b90be commit 7daacc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/maker_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ func TestDecisionError(t *testing.T) {
HoldScore: 80.00,
}

orderRepository.On("GetOpenedOrderCached", "BTCUSDT", "BUY").Return(nil)
strategyFacade.On("Decide", "BTCUSDT").Return(model.FacadeResponse{
Hold: 0.00,
Sell: 0.00,
Buy: 0.00,
}, errors.New("Test Facade!!!"))
maker.Make("BTCUSDT")
orderRepository.AssertNumberOfCalls(t, "GetOpenedOrderCached", 0)
exchangeRepository.AssertNumberOfCalls(t, "GetTradeLimit", 0)
}

func TestProcessSwap(t *testing.T) {
Expand Down

0 comments on commit 7daacc3

Please sign in to comment.