Skip to content

Commit

Permalink
fix(pubsublite): Disable integration tests for project id (#3087)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Hong <9397363+hongalex@users.noreply.github.com>
  • Loading branch information
tmdiep and hongalex committed Oct 27, 2020
1 parent e7359e4 commit a0982f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pubsublite/integration_test.go
Expand Up @@ -16,6 +16,7 @@ package pubsublite
import (
"context"
"math/rand"
"strconv"
"testing"
"time"

Expand Down Expand Up @@ -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())
}

Expand Down

0 comments on commit a0982f7

Please sign in to comment.