iotexproject / iotex-core

Official implementation of IoTeX blockchain protocol in Go.
https://iotex.io
Apache License 2.0
1.55k stars 322 forks source link

TestCandidateTransferOwnership failing on macOS #4302

Closed dustinxie closed 1 day ago

dustinxie commented 1 week ago

What version of iotex-core image (or code branch) are you using?

latest master at commit

What operating system and processor architecture are you using?

macOS

What did you do? If possible, provide a recipe for reproducing the error.

make test

What did you expect to see?

test should pass

What did you see instead?

test failing, might due to diff in Linux vs. macOS environment

--- FAIL: TestCandidateTransferOwnership (0.85s)
    --- FAIL: TestCandidateTransferOwnership/transfer_candidate_ownership (0.85s)
panic: Fail to remove testDB file [recovered]
    panic: Fail to remove testDB file

goroutine 148227 [running]:
testing.tRunner.func1.2({0x112dce1c0, 0x11314ebd0})
    /usr/local/Cellar/go/1.22.4/libexec/src/testing/testing.go:1631 +0x89d
testing.tRunner.func1()
    /usr/local/Cellar/go/1.22.4/libexec/src/testing/testing.go:1634 +0xa51
panic({0x112dce1c0?, 0x11314ebd0?})
    /usr/local/Cellar/go/1.22.4/libexec/src/runtime/panic.go:770 +0x136
github.com/iotexproject/iotex-core/testutil.CleanupPath({0x11135c6be, 0x1e})
    /Users/dustin/iotexproject/iotex-core/testutil/file.go:26 +0xad
github.com/iotexproject/iotex-core/e2etest.(*e2etest).teardown(0xc0044aa008)
    /Users/dustin/iotexproject/iotex-core/e2etest/e2etest.go:95 +0x15a
github.com/iotexproject/iotex-core/e2etest.TestCandidateTransferOwnership.func2(0xc00293a4e0)
    /Users/dustin/iotexproject/iotex-core/e2etest/native_staking_test.go:691 +0x218f
testing.tRunner(0xc00293a4e0, 0xc004f83f20)
    /usr/local/Cellar/go/1.22.4/libexec/src/testing/testing.go:1689 +0x344
created by testing.(*T).Run in goroutine 148226
    /usr/local/Cellar/go/1.22.4/libexec/src/testing/testing.go:1742 +0xd7b