diff --git a/server/backend/feedback_test.go b/server/backend/feedback_test.go index 88a46acd..b5d5d441 100644 --- a/server/backend/feedback_test.go +++ b/server/backend/feedback_test.go @@ -90,7 +90,7 @@ func (s *FeedbackSuite) Test_SendFeedback() { s.mock.ExpectBegin() returnedTime := time.Now() s.mock.ExpectQuery(regexp.QuoteMeta("INSERT INTO `feedback` (`image_count`,`email_id`,`receiver`,`reply_to`,`feedback`,`latitude`,`longitude`,`os_version`,`app_version`,`processed`) VALUES (?,?,?,?,?,?,?,?,?,?) RETURNING `timestamp`,`id`")). - WithArgs(0, "018abf31-8bb5-79ee-b08c-aed101c6e9f7", "app@tum.de", "testing@example.com", "Hello World", nil, nil, nil, nil, false). + WithArgs(1, "018abf31-8bb5-79ee-b08c-aed101c6e9f7", "app@tum.de", "testing@example.com", "Hello World", nil, nil, nil, nil, false). WillReturnRows(sqlmock.NewRows([]string{"timestamp", "id"}).AddRow(returnedTime, 1)) s.mock.ExpectCommit()