Skip to content

Commit 7b39cb9

Browse files
committed
Fix tests
1 parent 870d3f5 commit 7b39cb9

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

services/app/apps/codebattle/lib/codebattle/user.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ defmodule Codebattle.User do
6262
field(:github_id, :integer)
6363
field(:github_name, :string)
6464
field(:is_bot, :boolean, default: false)
65-
field(:lang, :string, default: "python")
65+
field(:lang, :string, default: "js")
6666
field(:name, :string)
6767
field(:password_hash, :string)
6868
field(:public_id, :binary_id)
@@ -134,7 +134,7 @@ defmodule Codebattle.User do
134134
id: @guest_id,
135135
name: "John Doe",
136136
subscription_type: :free,
137-
lang: "python",
137+
lang: "js",
138138
rating: 0,
139139
rank: 0,
140140
sound_settings: %SoundSettings{}

services/app/apps/codebattle/test/codebattle_web/integration/tournament/arena_clan_95_percentile_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClan95PercentileTest do
9595

9696
assert %{
9797
matches: [],
98-
players: [],
98+
players: [_p1, _p2, _p3, _p4, _p5, _p6],
9999
ranking: %{
100100
page_size: 10,
101101
entries: [
@@ -112,6 +112,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClan95PercentileTest do
112112
tournament: %{
113113
access_type: "public",
114114
type: "arena",
115+
players_count: 6,
115116
state: "waiting_participants",
116117
break_state: "off",
117118
current_round_position: 0

services/app/apps/codebattle/test/codebattle_web/integration/tournament/arena_clan_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClanTest do
9595
^c3_id => %{id: ^c3_id, name: "c3", long_name: "cl3"}
9696
},
9797
matches: [],
98-
players: [],
98+
players: [_p1, _p2, _p3, _p4, _p5, _p6],
9999
ranking: %{
100100
page_size: 10,
101101
entries: [
@@ -109,6 +109,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClanTest do
109109
tournament: %{
110110
access_type: "public",
111111
type: "arena",
112+
players_count: 6,
112113
state: "waiting_participants",
113114
break_state: "off",
114115
current_round_position: 0

services/app/apps/codebattle/test/codebattle_web/integration/tournament/swiss_95_percentile_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ defmodule CodebattleWeb.Integration.Tournament.SwissClan95PercentileTest do
9292

9393
assert %{
9494
matches: [],
95-
players: [],
95+
players: [_p1, _p2, _p3, _p4, _p5, _p6],
9696
ranking: %{
9797
page_size: 10,
9898
entries: [
@@ -110,6 +110,7 @@ defmodule CodebattleWeb.Integration.Tournament.SwissClan95PercentileTest do
110110
access_type: "public",
111111
type: "swiss",
112112
state: "waiting_participants",
113+
players_count: 6,
113114
break_state: "off",
114115
current_round_position: 0
115116
}

0 commit comments

Comments
 (0)