Skip to content

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

@KarlChristomer

Description

@KarlChristomer

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions