Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defmodule Codebattle.UsersPointsAndRankUpdateServer do
# Recalculate user points when a non-open tournament finishes
# Open tournaments are excluded from point recalculation as they don't affect user ratings
def handle_info(%{event: "tournament:finished", payload: %{grade: grade}}, state) when grade != "open" do
:timer.sleep(to_timeout(second: 0.5))
:timer.sleep(to_timeout(second: 1))
do_work()
{:noreply, state}
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ defmodule Codebattle.Tournament.Entire.SwissGrandSlamTest do
@decimal100 Decimal.new("100.0")
@decimal0 Decimal.new("0.0")

@tag :skip
test "works with player who solved all tasks" do
[%{id: t1_id}, %{id: t2_id}, %{id: t3_id}] = insert_list(3, :task, level: "easy")
insert(:task_pack, name: "tp", task_ids: [t1_id, t2_id, t3_id])
Expand Down
Loading