Skip to content

Commit a0982f7

Browse files
tmdiephongalex
andauthored
fix(pubsublite): Disable integration tests for project id (#3087)
Co-authored-by: Alex Hong <9397363+hongalex@users.noreply.github.com>
1 parent e7359e4 commit a0982f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pubsublite/integration_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package pubsublite
1616
import (
1717
"context"
1818
"math/rand"
19+
"strconv"
1920
"testing"
2021
"time"
2122

@@ -50,6 +51,10 @@ func initIntegrationTest(t *testing.T) {
5051
if testutil.ProjID() == "" {
5152
t.Skip("Integration tests skipped. See CONTRIBUTING.md for details")
5253
}
54+
// The Pub/Sub Lite server will accept project ID or number by EOQ4, 2020.
55+
if _, err := strconv.ParseInt(testutil.ProjID(), 10, 64); err != nil {
56+
t.Skip("Integration tests skipped. Only project number currently supported.")
57+
}
5358
rng = testutil.NewRand(time.Now())
5459
}
5560

0 commit comments

Comments
 (0)