Skip to content

make all the test green - #6

Closed
mhughdo wants to merge 1 commit into
notional-labs:pebble-againfrom
mhughdo:pebble-again
Closed

mhughdo wants to merge 1 commit into
notional-labs:pebble-againfrom
mhughdo:pebble-again

Conversation

@mhughdo

@mhughdo mhughdo commented Jul 28, 2022 •

Copy link
Copy Markdown

I found a solution, all 35 jobs passed, as you can see here: https://github.com/mhughdo/tm-db/actions/runs/2754454832.

  • The reason for "panic: close of closed channel [recovered]" error is because when you run go test -count 5000 -tags pebbledb -test.run ^TestDBIterator/pebbledb$, thousands of tests are gonna use the same DB file. Some tests finish and close/remove the file, right after that, some other tests might also do the same which will cause panic. Simply use a random file name each time a test runs and you'll be fine
  • For the panic: test timed out after 10m0s you can just simply add the timeout flag to the command, something like this: go test -timeout 20m -count 5000 -tags pebbledb -test.run ^TestDBIterator/pebbledb$

@mhughdo

mhughdo commented Jul 28, 2022

Copy link
Copy Markdown
Author

close this PR because i realized you fixed the problem

@mhughdo mhughdo closed this Jul 28, 2022
@mhughdo

mhughdo commented Jul 28, 2022

Copy link
Copy Markdown
Author

Oh actually not, i can see that your test is still failing, open again: tendermint#283

@mhughdo mhughdo reopened this Jul 28, 2022
@mhughdo mhughdo changed the title random db file name each test make all the test green Jul 28, 2022
@mhughdo mhughdo closed this Jul 29, 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

Successfully merging this pull request may close these issues.

1 participant