Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnitTest failed: go test -timeout 30s -run ^TestChain$ github.com/vitelabs/go-vite/v2/ledger/chain -v #600

Open
KarlChristomer opened this issue May 27, 2022 · 0 comments

Comments

@KarlChristomer
Copy link
Collaborator

KarlChristomer commented May 27, 2022

Describe the bug briefly
The unitTest(TestChain) in the ledger/chain/chain_test.go failed to pass in coincidence

go clean -testcache
go test -run ^TestChain$ github.com/vitelabs/go-vite/v2/ledger/chain -v

Error log

        --- PASS: TestChain/deleteSnapshotBlocks#01/GetContractCode (0.00s)
        --- PASS: TestChain/deleteSnapshotBlocks#01/GetContractList (0.00s)
        --- PASS: TestChain/deleteSnapshotBlocks#01/GetVmLogList (0.00s)
        --- FAIL: TestChain/deleteSnapshotBlocks#01/GetQuotaUsedList (0.00s)
panic: Addr: vite_b5eafe3c101d370bdb7b674f6f0314ca3a1894c8ab6ce4d4a3, queryQuota: 101, quota: 161, queryBlockCount: 4, blockCount: 4 [recovered]
        panic: Addr: vite_b5eafe3c101d370bdb7b674f6f0314ca3a1894c8ab6ce4d4a3, queryQuota: 101, quota: 161, queryBlockCount: 4, blockCount: 4

goroutine 839 [running]:
testing.tRunner.func1.2(0x16f1d00, 0xc0036fbea0)
        /usr/local/go/src/testing/testing.go:1143 +0x332
testing.tRunner.func1(0xc003fe8c00)
        /usr/local/go/src/testing/testing.go:1146 +0x4b6
panic(0x16f1d00, 0xc0036fbea0)
@viteshan viteshan changed the title UnitTest failed UnitTest failed: go test -timeout 30s -run ^TestChain$ github.com/vitelabs/go-vite/v2/ledger/chain -v May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant