Skip to content

Commit

Permalink
updated the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed May 11, 2024
1 parent 1150b23 commit 516acfe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/backend/feedback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *FeedbackSuite) SetupSuite() {
DriverName: "mysql",
})
s.mock.ExpectQuery("SELECT VERSION()").
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("10.11.4-MariaDB"))
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("8.4.0"))
s.DB, err = gorm.Open(dialector, &gorm.Config{})
require.NoError(s.T(), err)
}
Expand Down
2 changes: 1 addition & 1 deletion server/backend/movie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (s *MovieSuite) SetupSuite() {
DriverName: "mysql",
})
s.mock.ExpectQuery("SELECT VERSION()").
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("10.11.4-MariaDB"))
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("8.4.0"))
s.DB, err = gorm.Open(dialector, &gorm.Config{})
require.NoError(s.T(), err)
}
Expand Down
2 changes: 1 addition & 1 deletion server/backend/news_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *NewsSuite) SetupSuite() {
DriverName: "mysql",
})
s.mock.ExpectQuery("SELECT VERSION()").
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("10.11.4-MariaDB"))
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("8.4.0"))
s.DB, err = gorm.Open(dialector, &gorm.Config{})
require.NoError(s.T(), err)

Expand Down
2 changes: 1 addition & 1 deletion server/backend/update_note_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (s *UpdateNoteSuite) SetupSuite() {
DriverName: "mysql",
})
s.mock.ExpectQuery("SELECT VERSION()").
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("10.11.4-MariaDB"))
WillReturnRows(sqlmock.NewRows([]string{"VERSION()"}).AddRow("8.4.0"))
s.DB, err = gorm.Open(dialector, &gorm.Config{})
require.NoError(s.T(), err)

Expand Down

0 comments on commit 516acfe

Please sign in to comment.