internal/worker: skip TestNewBody
TestNewBody uses math.MaxInt which is only available in Go1.17+, so this
test is failing on TryBots.
Temporarily comment out this test until CI is moved to kokoro.
For golang/go#50026
Change-Id: Iae296a983d8a6529b690f12e0989c1f9334b7eae
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/369994
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/internal/worker/worker_test.go b/internal/worker/worker_test.go
index 1bafece..aeff6d6 100644
--- a/internal/worker/worker_test.go
+++ b/internal/worker/worker_test.go
@@ -6,14 +6,12 @@
import (
"context"
- "math"
"strings"
"testing"
"time"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
- "golang.org/x/vuln/internal/cveschema"
"golang.org/x/vuln/internal/worker/log"
"golang.org/x/vuln/internal/worker/store"
)
@@ -137,6 +135,8 @@
}
}
+/*
+TODO(golang/go#50026): Uncomment this test once CI is moved to kokoro.
func TestNewBody(t *testing.T) {
r := &store.CVERecord{
ID: "ID1",
@@ -210,3 +210,4 @@
}
return strings.Join(lines, "\n")
}
+*/