Skip to content

Commit 6fabc93

Browse files
committed
use async: false in tests with File.cd!
1 parent ad5e31c commit 6fabc93

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test/ecto/migration_test.exs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
defmodule Ecto.MigrationTest do
2-
# Although this test uses the Ecto.Migration.Runner which
3-
# is global state, we can run it async as long as this is
4-
# the only test case that uses the Runner in async mode.
5-
use ExUnit.Case, async: true
2+
# We use in_tmp which uses File.cd!
3+
use ExUnit.Case, async: false
64
use Ecto.Migration
75

86
import Support.FileHelpers

test/ecto/migrator_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
defmodule Ecto.MigratorTest do
2-
use ExUnit.Case
2+
# We use in_tmp which uses File.cd!
3+
use ExUnit.Case, async: false
34

45
import Support.FileHelpers
56
import Ecto.Migrator

0 commit comments

Comments
 (0)