From 36446ff7ac678cc1f1bfc37c29e200b4875ea603 Mon Sep 17 00:00:00 2001 From: Rory McKinley Date: Tue, 22 Oct 2024 11:40:19 +0200 Subject: [PATCH] Flickering test --- test/lightning_web/channels/worker_channel_test.exs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/lightning_web/channels/worker_channel_test.exs b/test/lightning_web/channels/worker_channel_test.exs index ff4435dd6d..3e790ad424 100644 --- a/test/lightning_web/channels/worker_channel_test.exs +++ b/test/lightning_web/channels/worker_channel_test.exs @@ -65,9 +65,12 @@ defmodule LightningWeb.WorkerChannelTest do ref = push(socket, "claim", %{"demand" => 1}) - assert_reply ref, :ok, %{ - runs: [%{"id" => ^run_id, "token" => token}] - } + assert_reply ref, + :ok, + %{ + runs: [%{"id" => ^run_id, "token" => token}] + }, + 1_000 Lightning.Stub.freeze_time(DateTime.utc_now() |> DateTime.add(5, :second))