Skip to content

Commit

Permalink
Reset debug mode after tests to fix test flakyness
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Oct 1, 2024
1 parent 901e83f commit 754c8a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/yabeda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def debug!

true
end
# rubocop: enable Metrics/MethodLength

# Forget all the configuration.
# For testing purposes as it doesn't rollback changes in adapters.
Expand All @@ -144,9 +143,11 @@ def reset!
@metrics = nil
collectors.clear
configurators.clear
@config = Config.new
instance_variable_set(:@configured_by, nil)
instance_variable_set(:@debug_was_enabled_by, nil)
end
# rubocop: enable Metrics/MethodLength
end
end

Expand Down

0 comments on commit 754c8a2

Please sign in to comment.