Skip to content

Commit

Permalink
add logs, tweak add -tags=localServer
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Sep 19, 2024
1 parent 04f8bbe commit e8acdbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
env:
PINECONE_API_KEY: ${{ secrets.API_KEY }}
- name: Run local integration tests
run: go test -count=1 -v ./pinecone -run TestRunLocalIntegrationSuite
run: go test -count=1 -v ./pinecone -run TestRunLocalIntegrationSuite -tags=localServer
env:
PINECONE_INDEX_URL_POD: http://pc-index-pod:5082
PINECONE_INDEX_URL_SERVERLESS: http://pc-index-serverless:5081
Expand Down
2 changes: 2 additions & 0 deletions pinecone/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ func (ts *LocalIntegrationTests) TearDownSuite() {
// This test function is picked up by go test and triggers the suite runs when
// the
func TestRunLocalIntegrationSuite(t *testing.T) {
fmt.Println("Running local integration tests")
RunLocalSuite(t)
}

func RunLocalSuite(t *testing.T) {
fmt.Println("Running local integration tests")
localHostPod, present := os.LookupEnv("PINECONE_INDEX_URL_POD")
assert.True(t, present, "PINECONE_INDEX_URL_POD env variable not set")

Expand Down

0 comments on commit e8acdbb

Please sign in to comment.