Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 1728827

Browse files
Correctly pass connection string to test
1 parent b95b619 commit 1728827

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/test_helper.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ excluded =
3333
ExUnit.configure(exclude: excluded)
3434
ExUnit.start()
3535

36-
{_, 0} = System.cmd("mongo", ~w'mongodb_test --eval db.dropDatabase() #{mongodb_uri}')
37-
{_, 0} = System.cmd("mongo", ~w'mongodb_test2 --eval db.dropDatabase() #{mongodb_uri}')
36+
{_, 0} = System.cmd("mongo", ~w'mongodb_test #{mongodb_uri} --eval db.dropDatabase() ')
37+
{_, 0} = System.cmd("mongo", ~w'mongodb_test2 #{mongodb_uri} --eval db.dropDatabase() ')
3838

39-
{_, 0} = System.cmd("mongo", ~w'mongodb_test --eval db.dropDatabase() #{mongodb_uri}')
40-
{_, 0} = System.cmd("mongo", ~w'mongodb_test2 --eval db.dropDatabase() #{mongodb_uri}')
41-
{_, 0} = System.cmd("mongo", ~w'admin_test --eval db.dropDatabase() #{mongodb_uri}')
39+
{_, 0} = System.cmd("mongo", ~w'mongodb_test #{mongodb_uri} --eval db.dropDatabase() ')
40+
{_, 0} = System.cmd("mongo", ~w'mongodb_test2 #{mongodb_uri} --eval db.dropDatabase() ')
41+
{_, 0} = System.cmd("mongo", ~w'admin_test #{mongodb_uri} --eval db.dropDatabase() ')
4242

43-
{_, _} = System.cmd("mongo", ~w'mongodb_test --eval db.dropUser("mongodb_user") #{mongodb_uri}')
44-
{_, _} = System.cmd("mongo", ~w'mongodb_test --eval db.dropUser("mongodb_user2") #{mongodb_uri}')
43+
{_, _} = System.cmd("mongo", ~w'mongodb_test #{mongodb_uri} --eval db.dropUser("mongodb_user") ')
44+
{_, _} = System.cmd("mongo", ~w'mongodb_test #{mongodb_uri} --eval db.dropUser("mongodb_user2") ')
4545

4646
{_, _} =
4747
System.cmd("mongo", ~w'admin_test --eval db.dropUser("mongodb_admin_user") #{mongodb_uri}')

0 commit comments

Comments
 (0)