fix: server_snapshots - incorrect num_inactive_tribes
All checks were successful
ci/woodpecker/push/govulncheck Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Dawid Wysokiński 2024-05-11 17:23:40 +02:00
parent c6d7ad8965
commit 7de443c652
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
2 changed files with 11 additions and 11 deletions

View File

@ -83,16 +83,16 @@ func NewServer(tb TestingTB, opts ...func(cfg *ServerConfig)) domain.Server {
cfg.URL.String(),
cfg.Open,
cfg.Special,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
gofakeit.IntRange(0, 100000),
NewServerConfig(tb),
NewBuildingInfo(tb),
NewUnitInfo(tb),

View File

@ -176,7 +176,7 @@ func NewCreateServerSnapshotParams(server Server, date time.Time) (CreateServerS
numInactivePlayers: server.NumInactivePlayers(),
numTribes: server.NumTribes(),
numActiveTribes: server.NumActiveTribes(),
numInactiveTribes: server.NumInactivePlayers(),
numInactiveTribes: server.NumInactiveTribes(),
numVillages: server.NumVillages(),
numPlayerVillages: server.NumPlayerVillages(),
numBarbarianVillages: server.NumBarbarianVillages(),