Run window post test on circle

This commit is contained in:
Łukasz Magiera
2020-06-01 15:06:10 +02:00
parent ee29a92021
commit b753cd4503
4 changed files with 19 additions and 10 deletions
+4 -3
View File
@@ -6,6 +6,7 @@ import (
"crypto/rand"
"io/ioutil"
"net/http/httptest"
"os"
"testing"
"time"
@@ -517,8 +518,8 @@ func TestPledgeSectors(t *testing.T) {
}
func TestWindowedPost(t *testing.T) {
if testing.Short() {
t.Skip("this takes a while")
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")
@@ -527,5 +528,5 @@ func TestWindowedPost(t *testing.T) {
logging.SetLogLevel("sub", "ERROR")
logging.SetLogLevel("storageminer", "ERROR")
test.TestWindowPost(t, mockSbBuilder, 3*time.Millisecond, 10)
test.TestWindowPost(t, mockSbBuilder, 5*time.Millisecond, 10)
}