Move streaming around config into manager class (#28684)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-01-11 10:54:42 +00:00
1 parent 87097a227c
commit 4e08a4892f
2 files changed
+13 -15

No files matched your search

+13
View File
@@ -95,6 +95,19 @@ RSpec.configure do |config|
end
end
config.around :each, type: :system do |example|
# Streaming server needs DB access but `use_transactional_tests` rolls back
# every transaction. Disable this feature for streaming tests, and use
# DatabaseCleaner to clean the database tables between each test.
self.use_transactional_tests = false
DatabaseCleaner.cleaning do
example.run
end
self.use_transactional_tests = true
end
private
def streaming_server_manager