Skip to content

Commit a54a0c4

Browse files
committed
attempt flaky fix
1 parent bab5bd0 commit a54a0c4

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

test/sandbox/test/inline_template_test.rb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -216,17 +216,15 @@ class InlineComponentDerivedFromComponentSupportingVariants < Level2Component
216216
skip unless Rails::VERSION::MAJOR >= 8 && Rails::VERSION::MINOR > 0
217217

218218
without_template_annotations do
219-
with_new_cache do
220-
with_coverage_running do
221-
# Force recompilation with coverage "enabled" but annotations disabled
222-
ViewComponent::CompileCache.cache.delete(ErbComponent)
219+
with_coverage_running do
220+
# Force recompilation with coverage "enabled" but annotations disabled
221+
ViewComponent::CompileCache.cache.delete(ErbComponent)
223222

224-
# This would segfault in v4.3.0 because it only avoided -1 lineno
225-
# when annotations were enabled
226-
render_inline(ErbComponent.new(message: "Foo bar"))
223+
# This would segfault in v4.3.0 because it only avoided -1 lineno
224+
# when annotations were enabled
225+
render_inline(ErbComponent.new(message: "Foo bar"))
227226

228-
assert_selector("div", text: "Foo bar")
229-
end
227+
assert_selector("div", text: "Foo bar")
230228
end
231229
end
232230
end

0 commit comments

Comments
 (0)