A platform for community discussion. Free, open, simple.
DEV: Add debugging assertion for a flaky test (#35369)
Alan Guo Xiang Tandf6a38a1e2b7
diff --git a/spec/lib/svg_sprite/svg_sprite_spec.rb b/spec/lib/svg_sprite/svg_sprite_spec.rbindex a66ff0df313..2a4bd91052f 100644--- a/spec/lib/svg_sprite/svg_sprite_spec.rb+++ b/spec/lib/svg_sprite/svg_sprite_spec.rb@@ -17,6 +17,8 @@ RSpec.describe SvgSprite doit "can generate paths" doversion = SvgSprite.version # Icons won't change for this test++ expect(SvgSprite.bundle).to eq(SvgSprite.bundle(1)) # This test flakes from time to time, adding this assertion to help us debug the issue.expect(SvgSprite.path).to eq("/svg-sprite/#{Discourse.current_hostname}/svg--#{version}.js")expect(SvgSprite.path(1)).to eq("/svg-sprite/#{Discourse.current_hostname}/svg-1-#{version}.js")