Skip to content

Commit 0eed036

Browse files
committed
feat: Use a more unique test database name
1 parent 3d40761 commit 0eed036

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/rails_spec_helper.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def capture_cmd(cmd, env = {})
3232
end
3333

3434
def database_name
35-
@database_name ||= "appland-rails-test-#{Random.bytes(2).unpack1('h*')}"
35+
# This is used locally too, so make the name nice and unique.
36+
@database_name ||= "appland-rails-test-#{Random.bytes(8).unpack1('h*')}"
3637
end
3738

3839
def bundle

0 commit comments

Comments
 (0)