From a0982f79d6461feabdf31363f29fed7dc5677fe7 Mon Sep 17 00:00:00 2001 From: tmdiep Date: Tue, 27 Oct 2020 11:29:40 +1100 Subject: [PATCH] fix(pubsublite): Disable integration tests for project id (#3087) Co-authored-by: Alex Hong <9397363+hongalex@users.noreply.github.com> --- pubsublite/integration_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pubsublite/integration_test.go b/pubsublite/integration_test.go index 3568f591819..7a5e1a3a50d 100644 --- a/pubsublite/integration_test.go +++ b/pubsublite/integration_test.go @@ -16,6 +16,7 @@ package pubsublite import ( "context" "math/rand" + "strconv" "testing" "time" @@ -50,6 +51,10 @@ func initIntegrationTest(t *testing.T) { if testutil.ProjID() == "" { t.Skip("Integration tests skipped. See CONTRIBUTING.md for details") } + // The Pub/Sub Lite server will accept project ID or number by EOQ4, 2020. + if _, err := strconv.ParseInt(testutil.ProjID(), 10, 64); err != nil { + t.Skip("Integration tests skipped. Only project number currently supported.") + } rng = testutil.NewRand(time.Now()) }