diff options
author | Haoping Ku <haoping.ku@dexon.org> | 2018-10-19 11:43:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 11:43:46 +0800 |
commit | 6399946a1906190b140b546591a0f02e6199303c (patch) | |
tree | ea7c07b4d430a1ab9322f4cd17d31eec52170318 /core/nonblocking_test.go | |
parent | 6f672ebbd27a97815029050e4538f6d93d273771 (diff) | |
download | dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.gz dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.bz2 dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.lz dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.xz dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.zst dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.zip |
core: total-ordering: change early flag to mode (#227)
* core: total-ordering: change early flag to mode
Diffstat (limited to 'core/nonblocking_test.go')
-rw-r--r-- | core/nonblocking_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/nonblocking_test.go b/core/nonblocking_test.go index cad7def..b1f1cb5 100644 --- a/core/nonblocking_test.go +++ b/core/nonblocking_test.go @@ -68,7 +68,7 @@ func (app *slowApp) StronglyAcked(blockHash common.Hash) { app.stronglyAcked[blockHash] = struct{}{} } -func (app *slowApp) TotalOrderingDelivered(blockHashes common.Hashes, early bool) { +func (app *slowApp) TotalOrderingDelivered(blockHashes common.Hashes, mode uint32) { time.Sleep(app.sleep) for _, hash := range blockHashes { app.totalOrderingDelivered[hash] = struct{}{} @@ -140,7 +140,7 @@ func (s *NonBlockingTestSuite) TestNonBlocking() { nbModule.StronglyAcked(hash) nbModule.BlockDelivered(hash, types.FinalizationResult{}) } - nbModule.TotalOrderingDelivered(hashes, true) + nbModule.TotalOrderingDelivered(hashes, TotalOrderingModeEarly) // nonBlocking should be non-blocking. s.True(shouldFinish.After(time.Now().UTC())) |