Skip to content

Commit

Permalink
Merge pull request #221 from isucon/bench/hotfix-player-validate-index-2
Browse files Browse the repository at this point in the history
[bench] hotfix ValidateScenarioのindexミスを修正
  • Loading branch information
ToshihitoKon authored Jul 23, 2022
2 parents 366138d + e2e5259 commit 96125c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/scenario_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func allAPISuccessCheck(ctx context.Context, sc *Scenario, step *isucandar.Bench
return fmt.Errorf("参加した大会数が違います (want: %d, got: %d)", 1, len(r.Data.Scores))
}
if competitionTitle != r.Data.Scores[0].CompetitionTitle {
return fmt.Errorf("参加した大会IDが違います (want: %s, got: %s)", competitionTitle, r.Data.Scores[checkPlayerIndex].CompetitionTitle)
return fmt.Errorf("参加した大会IDが違います (want: %s, got: %s)", competitionTitle, r.Data.Scores[0].CompetitionTitle)
}
if int64(100+checkPlayerIndex) != r.Data.Scores[0].Score {
return fmt.Errorf("スコアが違います (want: %d, got: %d)", 100+checkPlayerIndex, r.Data.Scores[0].Score)
Expand Down

0 comments on commit 96125c9

Please sign in to comment.