Skip to content

Commit

Permalink
🐛 ジャンルのテストでゲームを削除出来ていなかったのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Oct 15, 2023
1 parent 208ef0f commit f0e0603
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/repository/gorm2/game_genre_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ func TestRemoveGameGenre(t *testing.T) {
if err != nil {
t.Fatalf("failed to delete genres: %+v\n", err)
}

err = _db.Delete(&migrate.GameTable2{}).Error
if err != nil {
t.Fatalf("failed to delete games: %+v\n", err)
}
}()

if testCase.beforeGameGenres != nil && len(testCase.beforeGameGenres) != 0 {
Expand Down

0 comments on commit f0e0603

Please sign in to comment.