Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: mix compile --warnings-as-errors

- name: Run Tests
run: mix test
run: ./test.sh

- name: Run dialyzer static code analysis
run: mix dialyzer
10 changes: 9 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
#!/bin/sh
SIGNALTOWER_PORT="4235" mix test
SIGNALTOWER_PORT="4235" mix test test/room_test.exs test/session_test.exs test/test_helper.exs
ok=$?

# prometheus_stats_test test counters incrementing, but I assume this conflicts with
# room_test and session_test as these also call stats functions in parallel.
# I think those test file runs share the module state which own the prometheus counters.
#
# To workaround this issue, we run conflicting test files not together.
mix test test/prometheus_stats_test.exs && $ok
2 changes: 1 addition & 1 deletion test/session_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ defmodule SessionTest do
%{
"event" => "ping"
},
@initial_state()
@initial_state
)

assert_receive {:to_user, %{event: "pong"}}
Expand Down
Loading