Skip to content

Commit

Permalink
Make test faster
Browse files Browse the repository at this point in the history
  • Loading branch information
fractaledmind committed Jan 11, 2024
1 parent cd47d9b commit 13d4067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_integration_statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ def test_committing_tx_with_statement_active
end

def test_long_running_statements_get_interrupted_when_statement_timeout_set
@db.statement_timeout = 100
@db.statement_timeout = 10
assert_raises(SQLite3::InterruptException) do
@db.execute <<~SQL
WITH RECURSIVE r(i) AS (
VALUES(0)
UNION ALL
SELECT i FROM r
LIMIT 1000000
LIMIT 100000
)
SELECT i FROM r ORDER BY i LIMIT 1;
SQL
Expand Down

0 comments on commit 13d4067

Please sign in to comment.