We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3995ba3 commit 1492fc5Copy full SHA for 1492fc5
test/dev_migrations_test.exs
@@ -94,7 +94,7 @@ defmodule AshPostgres.DevMigrationsTest do
94
do: File.ls!(tenant_migrations_dev_path),
95
else: []
96
97
- on_exit(fn ->
+ clean = fn ->
98
if File.exists?(resource_dev_path) do
99
current_resource_files = File.ls!(resource_dev_path)
100
new_resource_files = current_resource_files -- initial_resource_files
@@ -120,7 +120,11 @@ defmodule AshPostgres.DevMigrationsTest do
120
end
121
122
AshPostgres.DevTestRepo.query!("DROP TABLE IF EXISTS posts")
123
- end)
+ end
124
+
125
+ clean.()
126
127
+ on_exit(clean)
128
129
130
describe "--dev option" do
0 commit comments