Skip to content

Commit

Permalink
prepare tag rating insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasjungmann committed Oct 26, 2023
1 parent 8d89097 commit 2d1baaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/backend/cafeteria_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ func (s *CafeteriaSuite) Test_CreateCanteenRating() {

func generateCanteenRating(canteen string, rating int32, s *CafeteriaSuite, comment string) pb.CreateCanteenRatingRequest {
y := make([]*pb.RatingTag, 2)
var myRating = prepareTagRating(s, 1, 0, 1, 1)
var myRating = prepareTagRating(s, 1, 0, 1, 5)
y[0] = &myRating
myRating = prepareTagRating(s, 2, 0, 3, 2)
y[1] = &myRating
var myRatingSecond = prepareTagRating(s, 2, 0, 3, 7)
y[1] = &myRatingSecond

return pb.CreateCanteenRatingRequest{
Points: rating,
Expand Down

0 comments on commit 2d1baaf

Please sign in to comment.