Skip to content

Commit

Permalink
fix: e2e tests (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar authored Aug 15, 2024
1 parent f9a54e6 commit 89cc123
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions influxdb3/client_e2e_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build e2e
// +build e2e

/*
Expand Down Expand Up @@ -228,7 +229,7 @@ func TestQueryDatabaseDoesNotExist(t *testing.T) {
Database: "does not exist",
})

iterator, err := client.Query(context.Background(), "SHOW NAMESPACES")
iterator, err := client.Query(context.Background(), "SHOW TABLES")
assert.Nil(t, iterator)
assert.Error(t, err)
assert.ErrorContains(t, err, "bucket \"does not exist\" not found")
Expand All @@ -245,7 +246,7 @@ func TestQuerySchema(t *testing.T) {
Database: database,
})

iterator, err := client.Query(context.Background(), "SHOW NAMESPACES")
iterator, err := client.Query(context.Background(), "SHOW TABLES")
require.NoError(t, err)
assert.NotNil(t, iterator.Raw())
}
Expand All @@ -261,7 +262,7 @@ func TestQuerySchemaWithOptions(t *testing.T) {
Database: "does not exist",
})

iterator, err := client.Query(context.Background(), "SHOW NAMESPACES", influxdb3.WithDatabase(database))
iterator, err := client.Query(context.Background(), "SHOW TABLES", influxdb3.WithDatabase(database))
require.NoError(t, err)
assert.NotNil(t, iterator.Raw())
}
Expand Down

0 comments on commit 89cc123

Please sign in to comment.