Skip to content

Commit

Permalink
Add timeouts to database creation/deletion (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgr authored Jul 31, 2023
1 parent 5e37af5 commit f13b2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testrel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ function create_test_database_name(; default_basename="test_rel")::String
end

function create_test_database(name::String, clone_db::Option{String}=nothing)
return create_database(get_context(), name; source=clone_db).database
return create_database(get_context(), name; source=clone_db, readtimeout=30).database
end

function delete_test_database(name::String)
return delete_database(get_context(), name)
return delete_database(get_context(), name; readtimeout=30)
end

"""
Expand Down

0 comments on commit f13b2ce

Please sign in to comment.