Skip to content

Commit

Permalink
Prevent recorder handoff test from flickering (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo authored Jan 7, 2025
1 parent 3508840 commit 8cf42e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/oban/met/recorder_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ defmodule Oban.Met.RecorderTest do

assert_receive {:notification, :handoff, %{"syn" => true}}

# Not ideal, but this test flickers in older versions of OTP
Process.sleep(50)

# Fake a response from another node
Notifier.notify(conf, :handoff, %{syn: true, module: Recorder})

Expand Down

0 comments on commit 8cf42e5

Please sign in to comment.