make the dispute test run by itself

It's kind of slow.
This commit is contained in:
Steven Allen 2021-01-21 20:16:03 -08:00
parent 0ba1306969
commit 1b67eed82c
2 changed files with 8 additions and 0 deletions

View File

@ -591,6 +591,11 @@ workflows:
go-test-flags: "-run=TestWindowedPost"
winpost-test: "1"
test-suite-name: window-post
- test-window-post:
codecov-upload: true
go-test-flags: "-run=TestWindowedDispute"
winpost-test: "1"
test-suite-name: window-post-dispute
- test-terminate:
codecov-upload: true
go-test-flags: "-run=TestTerminate"

View File

@ -200,6 +200,9 @@ func TestPaymentChannels(t *testing.T) {
}
func TestWindowPostDispute(t *testing.T) {
if os.Getenv("LOTUS_TEST_WINDOW_POST") != "1" {
t.Skip("this takes a few minutes, set LOTUS_TEST_WINDOW_POST=1 to run")
}
logging.SetLogLevel("miner", "ERROR")
logging.SetLogLevel("chainstore", "ERROR")
logging.SetLogLevel("chain", "ERROR")