Skip to content

Commit cb66e4d

Browse files
committed
improve GOOS=tamago test coverage
1 parent 2a53cb3 commit cb66e4d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/testing/testing.go

+5
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,11 @@ func Short() bool {
644644
panic("testing: Short called before Parse")
645645
}
646646

647+
// -test.short is forced due to lack of os.Args support
648+
if runtime.GOOS == "tamago" {
649+
return true
650+
}
651+
647652
return *short
648653
}
649654

src/time/tick_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestTickerResetLtZeroDuration(t *testing.T) {
151151
}
152152

153153
func TestLongAdjustTimers(t *testing.T) {
154-
if runtime.GOOS == "android" || runtime.GOOS == "ios" {
154+
if runtime.GOOS == "android" || runtime.GOOS == "ios" || runtime.GOOS == "tamago" {
155155
t.Skipf("skipping on %s - too slow", runtime.GOOS)
156156
}
157157
t.Parallel()

0 commit comments

Comments
 (0)