Skip to content

fix flaky ci test #2231

@c9s

Description

@c9s
--- FAIL: TestHedgeMarket_startAndHedge (0.12s)
    order_execution.go:343: Unexpected call to *mocks.MockExchangeExtended.SubmitOrder([context.Background.WithCancel.WithCancel { BTCUSDT SELL MARKET 0 1 0 0 { BTCUSDT  2 8 USDT BTC 10 10 0.001 0 0.0001 0.01 0 0 0}  0  MARGIN_BUY false false }]) at /home/runner/work/bbgo/bbgo/pkg/bbgo/order_execution.go:343 because: 
        expected call at /home/runner/work/bbgo/bbgo/pkg/strategy/xmaker/hedgemarket_test.go:149 doesn't match the argument at index 1.
        Got: { BTCUSDT SELL MARKET 0 1 0 0 { BTCUSDT  2 8 USDT BTC 10 10 0.001 0 0.0001 0.01 0 0 0}  0  MARGIN_BUY false false } (types.SubmitOrder)
        Want: is equal to { BTCUSDT SELL MARKET 0 2 0 0 { BTCUSDT  2 8 USDT BTC 10 10 0.001 0 0.0001 0.01 0 0 0}  0  MARGIN_BUY false false } (types.SubmitOrder)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions