Skip to content

Commit eb2ac26

Browse files
committed
chore: capture_log level
1 parent a57d508 commit eb2ac26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/dev_migrations_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ defmodule AshPostgres.DevMigrationsTest do
152152
assert [_extensions, migration, _migration] =
153153
Path.wildcard("priv/dev_test_repo/migrations/**/*_migrate_resources*.exs")
154154

155-
assert capture_log(fn -> migrate(migration) end) =~ "create table posts"
155+
assert capture_log([level: :debug], fn -> migrate(migration) end) =~ "create table posts"
156156

157157
AshPostgres.MigrationGenerator.generate(Domain,
158158
snapshot_path: "priv/resource_snapshots",
159159
migration_path: "priv/dev_test_repo/migrations",
160160
auto_name: true
161161
)
162162

163-
assert capture_log(fn -> migrate(migration) end) =~ "create table posts"
163+
assert capture_log([level: :debug], fn -> migrate(migration) end) =~ "create table posts"
164164
end
165165
end
166166

@@ -217,7 +217,7 @@ defmodule AshPostgres.DevMigrationsTest do
217217
)
218218
|> Enum.reject(&String.contains?(&1, "extensions"))
219219

220-
assert capture_log(fn -> tenant_migrate() end) =~ "create table org_#{org.id}.posts"
220+
assert capture_log([level: :debug], fn -> tenant_migrate() end) =~ "create table org_#{org.id}.posts"
221221
end
222222
end
223223

0 commit comments

Comments
 (0)