Skip to content

Commit

Permalink
test(go/adbc/driver/flightsql): try to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Mar 7, 2024
1 parent bf42dc6 commit ed4ab4e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion c/driver/flightsql/sqlite_flightsql_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,14 @@ TEST_F(SqliteFlightSqlStatementTest, CancelError) {
ASSERT_THAT(AdbcStatementNew(&connection, &statement.value, &error),
IsOkStatus(&error));

ASSERT_THAT(AdbcStatementSetSqlQuery(&statement.value, "SELECT 1", &error),
// Use a query that generates a lot of rows so that it won't complete before we cancel
auto query = R"(
SELECT * FROM
(SELECT value FROM generate_series(1, 5000)) a
JOIN
(SELECT value FROM generate_series(1, 5000)) b
)";
ASSERT_THAT(AdbcStatementSetSqlQuery(&statement.value, query, &error),
IsOkStatus(&error));

adbc_validation::StreamReader reader;
Expand Down

0 comments on commit ed4ab4e

Please sign in to comment.