Skip to content

Commit ee3ae8b

Browse files
committed
Fix test isolation: Reset excluded_databases after each test
Added 'after' block to clean up configuration state between tests to prevent test pollution. The excluded_databases configuration was persisting across tests, causing failures in multi-database tests.
1 parent 8c8f0e4 commit ee3ae8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_database_filtering.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
ActualDbSchema.config.excluded_databases = []
1616
end
1717

18+
after do
19+
# Clean up configuration after each test
20+
ActualDbSchema.config.excluded_databases = []
21+
end
22+
1823
describe "with excluded_databases configuration" do
1924
it "excludes databases from the excluded_databases list" do
2025
db_config = TestingState.db_config.dup

0 commit comments

Comments
 (0)