From 1569a9d307622d423b8de78ffb8d370b6b5ee176 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Thu, 25 Apr 2019 14:41:32 +0800 Subject: [PATCH] eth/downloader: fix tests --- eth/downloader/downloader_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index f8c6b25851..ec45eb06dd 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -1594,13 +1594,13 @@ func testCheckpointEnforcement(t *testing.T, protocol int, mode SyncMode) { tester.newPeer("peer", protocol, chain) var expect error - if mode == FastSync { + if mode == FastSync || mode == LightSync { expect = errUnsyncedPeer } if err := tester.sync("peer", nil, mode); err != expect { t.Fatalf("block sync error mismatch: have %v, want %v", err, expect) } - if mode == FastSync { + if mode == FastSync || mode == LightSync { assertOwnChain(t, tester, 1) } else { assertOwnChain(t, tester, chain.len())