Skip to content

Commit

Permalink
indexミスを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshihitoKon committed Jul 23, 2022
1 parent 366138d commit e2e5259
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 e2e5259

Please sign in to comment.