From 710888a0b3156f500b9ce5d47191327f745e65fe Mon Sep 17 00:00:00 2001 From: Andrea Barisani Date: Tue, 10 Sep 2024 15:10:44 +0200 Subject: [PATCH] improve GOOS=tamago test coverage --- src/encoding/gob/codec_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/encoding/gob/codec_test.go b/src/encoding/gob/codec_test.go index ec56ad50b220d3..23c3bec0c952e8 100644 --- a/src/encoding/gob/codec_test.go +++ b/src/encoding/gob/codec_test.go @@ -11,6 +11,7 @@ import ( "math" "math/rand" "reflect" + "runtime" "strings" "testing" "time" @@ -1566,6 +1567,10 @@ func testEncodeDecode(t *testing.T, in, out any) { } func TestLargeSlice(t *testing.T) { + if runtime.GOOS == "tamago" { + t.Skip("test requires significant memory") + } + t.Run("byte", func(t *testing.T) { if unsafe.Sizeof(uintptr(0)) > 4 { t.Parallel() // Only run in parallel in a large address space