Commits

Kevin Smith  committed eb93f07

Added test for infinity timeouts

  • Participants
  • Parent commits c14248a

Comments (0)

Files changed (1)

File apps/luke/tests/lifecycle_tests.erl

              timer:sleep(10),
              test_util:assertDead([Pid|Phases]) end,
      fun() ->
+             %% Startup/teardown, infinity timeout, no input
+             {ok, Pid} = luke:new_flow(self(), make_ref(), ?TWO_PHASE_FLOW, infinity),
+             Phases = test_util:verify_phases(Pid, 2),
+             exit(Pid, shutdown),
+             timer:sleep(10),
+             test_util:assertDead([Pid|Phases]) end,
+     fun() ->
              %% Startup/teardown, input w/no end
              {ok, Pid} = luke:new_flow(make_ref(), ?TWO_PHASE_FLOW),
              Phases = test_util:verify_phases(Pid, 2),