fix actions count

This commit is contained in:
2026-10-01 02:03:37 +07:00
parent 85d94edbe8
commit 732f898cf0
2 changed files with 12 additions and 2 deletions
@@ -162,7 +162,7 @@ func TestServicesLifecyclePostgres(t *testing.T) {
}
grading, err := answers.GetGameAnswers(ctx, id)
check(err)
if len(grading.Teams) != 1 || grading.Teams[0].Answers[0].Score == nil || *grading.Teams[0].Answers[0].Score != 5 {
if len(grading.Teams) != 1 || grading.Teams[0].Team.ActionsCount != 1 || grading.Teams[0].Answers[0].Score == nil || *grading.Teams[0].Answers[0].Score != 5 {
t.Fatal("reset removed answers or scores")
}
}