Skip to content

Commit

Permalink
Flickering test
Browse files Browse the repository at this point in the history
  • Loading branch information
rorymckinley committed Oct 23, 2024
1 parent a0f4b30 commit 95443f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/lightning_web/channels/worker_channel_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 95443f4

Please sign in to comment.