Skip to content

Commit 96125c9

Browse files
authored
Merge pull request #221 from isucon/bench/hotfix-player-validate-index-2
[bench] hotfix ValidateScenarioのindexミスを修正
2 parents 366138d + e2e5259 commit 96125c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/scenario_validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ func allAPISuccessCheck(ctx context.Context, sc *Scenario, step *isucandar.Bench
439439
return fmt.Errorf("参加した大会数が違います (want: %d, got: %d)", 1, len(r.Data.Scores))
440440
}
441441
if competitionTitle != r.Data.Scores[0].CompetitionTitle {
442-
return fmt.Errorf("参加した大会IDが違います (want: %s, got: %s)", competitionTitle, r.Data.Scores[checkPlayerIndex].CompetitionTitle)
442+
return fmt.Errorf("参加した大会IDが違います (want: %s, got: %s)", competitionTitle, r.Data.Scores[0].CompetitionTitle)
443443
}
444444
if int64(100+checkPlayerIndex) != r.Data.Scores[0].Score {
445445
return fmt.Errorf("スコアが違います (want: %d, got: %d)", 100+checkPlayerIndex, r.Data.Scores[0].Score)

0 commit comments

Comments
 (0)