programming-phoenix icon indicating copy to clipboard operation
programming-phoenix copied to clipboard

test "new annotations triggers InfoSys" fails

Open charleshan opened this issue 9 years ago • 0 comments

It seems like the reaon it's failing is because @http Application.get_env(:info_sys, :wolfram)[:http_client] || :httpc is returning the :httpc option when I run tests from rumbl umbrella app.

$ mix test
==> info_sys
....

Finished in 0.1 seconds
4 tests, 0 failures

Randomized with seed 250210
==> rumbl
............................

  1) test new annotations triggers InfoSys (Rumbl.Channels.VideoChannelTest)
     test/channels/video_channel_test.exs:32
     No message matching %Phoenix.Socket.Broadcast{event: "new_annotation", payload: %{body: "2", at: 123}} after 100ms.
     Process mailbox:
       %Phoenix.Socket.Message{event: "new_annotation", payload: %{at: 123, body: "1 + 1", id: 94, user: %{id: 568, username: "user4CAB69827EA3D983"}}, ref: nil, topic: "videos:252"}
     stacktrace:
       test/channels/video_channel_test.exs:37: (test)

.......

Finished in 0.6 seconds
36 tests, 1 failure

Randomized with seed 505551

charleshan avatar Aug 14 '16 19:08 charleshan