Skip to content

Commit 710888a

Browse files
committed
improve GOOS=tamago test coverage
1 parent 816dbf8 commit 710888a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/encoding/gob/codec_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"math"
1212
"math/rand"
1313
"reflect"
14+
"runtime"
1415
"strings"
1516
"testing"
1617
"time"
@@ -1566,6 +1567,10 @@ func testEncodeDecode(t *testing.T, in, out any) {
15661567
}
15671568

15681569
func TestLargeSlice(t *testing.T) {
1570+
if runtime.GOOS == "tamago" {
1571+
t.Skip("test requires significant memory")
1572+
}
1573+
15691574
t.Run("byte", func(t *testing.T) {
15701575
if unsafe.Sizeof(uintptr(0)) > 4 {
15711576
t.Parallel() // Only run in parallel in a large address space

0 commit comments

Comments
 (0)