Add short tests
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
0b4db5530c
commit
1a2401a816
@ -76,7 +76,7 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: lotus-storage-miner
|
path: lotus-storage-miner
|
||||||
|
|
||||||
test:
|
test: &test
|
||||||
description: |
|
description: |
|
||||||
Run tests with gotestsum.
|
Run tests with gotestsum.
|
||||||
parameters:
|
parameters:
|
||||||
@ -154,6 +154,9 @@ jobs:
|
|||||||
- "~/go/src/github.com"
|
- "~/go/src/github.com"
|
||||||
- "~/go/src/golang.org"
|
- "~/go/src/golang.org"
|
||||||
|
|
||||||
|
test-short:
|
||||||
|
<<: *test
|
||||||
|
|
||||||
build_macos:
|
build_macos:
|
||||||
description: build darwin lotus binary
|
description: build darwin lotus binary
|
||||||
macos:
|
macos:
|
||||||
@ -254,8 +257,9 @@ workflows:
|
|||||||
jobs:
|
jobs:
|
||||||
- lint-changes:
|
- lint-changes:
|
||||||
args: "--new-from-rev origin/master"
|
args: "--new-from-rev origin/master"
|
||||||
- test:
|
- test
|
||||||
codecov-upload: true
|
- test-short:
|
||||||
|
go-test-flags: "--timeout 10m --short"
|
||||||
- mod-tidy-check
|
- mod-tidy-check
|
||||||
- build-all
|
- build-all
|
||||||
- build_macos:
|
- build_macos:
|
||||||
|
@ -124,6 +124,9 @@ func post(t *testing.T, sb *sectorbuilder.SectorBuilder, seals ...seal) time.Tim
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSealAndVerify(t *testing.T) {
|
func TestSealAndVerify(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping test in short mode")
|
||||||
|
}
|
||||||
if runtime.NumCPU() < 10 && os.Getenv("CI") == "" { // don't bother on slow hardware
|
if runtime.NumCPU() < 10 && os.Getenv("CI") == "" { // don't bother on slow hardware
|
||||||
t.Skip("this is slow")
|
t.Skip("this is slow")
|
||||||
}
|
}
|
||||||
@ -193,6 +196,9 @@ func TestSealAndVerify(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSealPoStNoCommit(t *testing.T) {
|
func TestSealPoStNoCommit(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping test in short mode")
|
||||||
|
}
|
||||||
if runtime.NumCPU() < 10 && os.Getenv("CI") == "" { // don't bother on slow hardware
|
if runtime.NumCPU() < 10 && os.Getenv("CI") == "" { // don't bother on slow hardware
|
||||||
t.Skip("this is slow")
|
t.Skip("this is slow")
|
||||||
}
|
}
|
||||||
@ -259,6 +265,9 @@ func TestSealPoStNoCommit(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSealAndVerify2(t *testing.T) {
|
func TestSealAndVerify2(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping test in short mode")
|
||||||
|
}
|
||||||
if runtime.NumCPU() < 10 && os.Getenv("CI") == "" { // don't bother on slow hardware
|
if runtime.NumCPU() < 10 && os.Getenv("CI") == "" { // don't bother on slow hardware
|
||||||
t.Skip("this is slow")
|
t.Skip("this is slow")
|
||||||
}
|
}
|
||||||
|
@ -292,5 +292,8 @@ func TestAPIRPC(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestAPIDealFlow(t *testing.T) {
|
func TestAPIDealFlow(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping test in short mode")
|
||||||
|
}
|
||||||
test.TestDealFlow(t, builder)
|
test.TestDealFlow(t, builder)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user