Skip to content

Commit

Permalink
test(go/adbc/driver/snowflake): properly skip tests w/o creds (#1598)
Browse files Browse the repository at this point in the history
Fixes #1585.
  • Loading branch information
lidavidm authored Mar 7, 2024
1 parent 3e3277d commit a3579ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions c/driver/snowflake/snowflake_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ class SnowflakeStatementTest : public ::testing::Test,
public:
// will need to be updated to SetUpTestSuite when gtest is upgraded
static void SetUpTestCase() {
if (quirks_.skip_) {
GTEST_SKIP();
}

struct AdbcError error;
struct AdbcDatabase db;
struct AdbcConnection connection;
Expand Down Expand Up @@ -262,6 +266,10 @@ class SnowflakeStatementTest : public ::testing::Test,

// will need to be updated to TearDownTestSuite when gtest is upgraded
static void TearDownTestCase() {
if (quirks_.skip_) {
GTEST_SKIP();
}

struct AdbcError error;
struct AdbcDatabase db;
struct AdbcConnection connection;
Expand Down

0 comments on commit a3579ff

Please sign in to comment.