Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Nondeterministic test #347

Closed
tomekowal opened this issue Jul 30, 2018 · 1 comment
Closed

Problem: Nondeterministic test #347

tomekowal opened this issue Jul 30, 2018 · 1 comment
Assignees
Labels

Comments

@tomekowal
Copy link
Contributor

mix test test/quantum/execution_broadcaster_test.exs
...
10:26:25.205 [info]  GenStage consumer #PID<0.2975.0> is stopping after receiving cancel from producer #PID<0.277.0> with reason: :noproc

...

  1) test add loads last execution time from storage (Quantum.ExecutionBroadcasterTest)
     test/quantum/execution_broadcaster_test.exs:83
     No message matching {:received, {:execute, ^job}} after 100ms.
     The following variables were pinned:
       job = %Quantum.Job{name: #Reference<0.1053226747.2575040516.68736>, overlap: true, run_strategy: %Quantum.RunStrategy.Random{nodes: :cluster}, schedule: ~e[* * * * * * *]e, state: :active, task: nil, timezone: :utc}
     Process mailbox:
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:30]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040516.68748>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:31]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040516.68752>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:32]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040516.68757>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:33]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040516.68761>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:34]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040516.68764>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:35]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040515.72350>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:36]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040515.72354>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:37]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040515.72357>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:38]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040515.72360>}}
       {:update_last_execution_date, {Quantum.ExecutionBroadcasterTest.TestScheduler, ~N[2018-07-30 07:26:39]}, {#PID<0.3006.0>, #Reference<0.1053226747.2575040515.72363>}}
     Showing only 10 of 3599 messages.
     code: capture_log(fn ->
     stacktrace:
       test/quantum/execution_broadcaster_test.exs:118: anonymous fn/3 in Quantum.ExecutionBroadcasterTest."test add loads last execution time from storage"/1
       test/quantum/execution_broadcaster_test.exs:117: anonymous fn/0 in Quantum.ExecutionBroadcasterTest."test add loads last execution time from storage"/1
       (ex_unit) lib/ex_unit/capture_log.ex:78: ExUnit.CaptureLog.capture_log/2
       test/quantum/execution_broadcaster_test.exs:92: (test)

.....

Finished in 14.7 seconds
12 tests, 1 failure

It doesn't happen every time, but once in a couple of executions. May be a timing issue in the test itself.

@tomekowal tomekowal changed the title Nondeterministic test Problem: Nondeterministic test Jul 30, 2018
@maennchen maennchen added the bug label Jul 30, 2018
@maennchen maennchen added this to the v3.0.0 milestone Aug 10, 2018
@maennchen maennchen removed this from the v3.0.0 milestone Feb 26, 2020
@maennchen maennchen self-assigned this Sep 8, 2020
@maennchen
Copy link
Member

This test was replaced with a better one some time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants