X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=netsync%2Fchainmgr%2Fblock_process_test.go;fp=netsync%2Fchainmgr%2Fblock_process_test.go;h=5bc2075fca268f0161a7cd5168201fa7f4e35b29;hp=4f1e024b1ed57506730d505a244fe80ba45dca1a;hb=8643695a1ff4d574d231ef7ada1cde3bbc76404b;hpb=a1d6ba85cdcf3b2f1877a2bd252fa613ae6f7944;ds=sidebyside diff --git a/netsync/chainmgr/block_process_test.go b/netsync/chainmgr/block_process_test.go index 4f1e024b..5bc2075f 100644 --- a/netsync/chainmgr/block_process_test.go +++ b/netsync/chainmgr/block_process_test.go @@ -43,7 +43,7 @@ func TestBlockProcess(t *testing.T) { close(downloadNotifyCh) }() wg.Add(1) - bp.process(downloadNotifyCh, ProcessStopCh, &wg) + bp.process(downloadNotifyCh, ProcessStopCh, uint64(blockNum/2), &wg) if bp.chain.BestBlockHeight() != uint64(blockNum) { t.Fatalf("TestBlockProcess fail: got %d want %d", bp.chain.BestBlockHeight(), blockNum) }