Skip to content

Commit

Permalink
fix unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ackratos committed May 10, 2019
1 parent 65d99bd commit a9f5e3f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions app/app_pub_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build !race

package app

import (
Expand Down
2 changes: 0 additions & 2 deletions app/app_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build !race

package app

import (
Expand Down
2 changes: 0 additions & 2 deletions app/ordertx_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build !race

package app

import (
Expand Down
3 changes: 2 additions & 1 deletion plugins/dex/order/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,10 @@ func TestKeeper_InitOrderBookDay1(t *testing.T) {
keeper.AddEngine(tradingPair)

keeper2 := MakeKeeper(cdc)
blockStore := bc.NewBlockStore(memDB)
ctx = sdk.NewContext(cms, abci.Header{}, sdk.RunTxModeCheck, logger)
keeper2.PairMapper.AddTradingPair(ctx, tradingPair)
keeper2.initOrderBook(ctx, 0, 7, memDB, db.NewMemDB(), 3, auth.DefaultTxDecoder(cdc))
keeper2.initOrderBook(ctx, 0, 7, blockStore, db.NewMemDB(), 3, auth.DefaultTxDecoder(cdc))
buys, sells := keeper2.engines["XYZ-000_BNB"].Book.GetAllLevels()
assert.Equal(2, len(buys))
assert.Equal(1, len(sells))
Expand Down

0 comments on commit a9f5e3f

Please sign in to comment.