Skip to content

Commit bdd1521

Browse files
committed
Remove out-of-memory from acceptable query outcomes
Only :ok and interrupted are expected results when a query races with its connection timeout. Accepting OOM would mask real regressions.
1 parent 06d40db commit bdd1521

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/exqlite/integration_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ defmodule Exqlite.IntegrationTest do
246246
case DBConnection.execute(conn, query, [], timeout: 1) do
247247
{:ok, _, _} -> :ok
248248
{:error, %Exqlite.Error{message: "interrupted"}} -> :ok
249-
{:error, %Exqlite.Error{message: "out of memory"}} -> :ok
249+
{:error, %Exqlite.Error{message: msg}} ->
250+
flunk("Unexpected error while executing query: #{msg}")
250251
end
251252

252253
File.rm(path)

0 commit comments

Comments
 (0)