This commit is contained in:
j75689 2021-10-21 15:24:30 +08:00
parent 87bd1b0d61
commit a9657cb0e6
2 changed files with 3 additions and 2 deletions

@ -47,5 +47,6 @@ jobs:
env:
ANDROID_HOME: "" # Skip android test
run: |
go clean -testcache
make test

@ -1568,8 +1568,8 @@ func TestLargeReorgTrieGC(t *testing.T) {
t.Fatalf("failed to finalize competitor chain: %v", err)
}
for i, block := range competitor[:len(competitor)-TestTriesInMemory] {
if node, _ := chain.stateCache.TrieDB().Node(block.Root()); node != nil {
t.Fatalf("competitor %d: competing chain state missing", i)
if node, err := chain.stateCache.TrieDB().Node(block.Root()); node != nil {
t.Fatalf("competitor %d: competing chain state missing, err: %v", i, err)
}
}
}