From c3975c3e902ad3acaaadc447477c5e4a825811bf Mon Sep 17 00:00:00 2001 From: Amolith Date: Tue, 20 Jan 2026 11:47:30 -0700 Subject: [PATCH] Remove unused wait_for I refactored away how I was using it before committing 51d5802e2782f49f6ade16e36d0caf599a9020ef, then forgot to remove it. --- test/test_component.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/test_component.rb b/test/test_component.rb index 9dd6155bbe00c7038096807027a8b70e8accab4a..9fb7240df92ce236a2bf15f5493e323ceb664b46 100644 --- a/test/test_component.rb +++ b/test/test_component.rb @@ -44,16 +44,6 @@ class ComponentTest < Minitest::Test raise $panic if $panic end - def wait_for(timeout: 1.0, interval: 0.01) - start = Time.now - until yield - raise "Timeout waiting for condition" if Time.now - start > timeout - f = Fiber.current - EM.add_timer(interval) { f.resume } - Fiber.yield - end - end - def test_message_unregistered m = Blather::Stanza::Message.new("+15551234567@component", "a"*4096) m.from = "unknown@example.com"