Skip to content

Commit 0718205

Browse files
committed
test: improve API key cascade test coverage
1 parent 1a78e7d commit 0718205

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

testing/apikey_cascade_private_share_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ func (s *ApiKeyCascadePrivateShareTestSuite) setupSponsoredGameWithPrivateShare(
3333
// Upload game and make it public
3434
game := Must(user.UploadGame("alien-first-contact"))
3535
gameID := game.ID.String()
36-
Must(user.UpdateGame(gameID, map[string]interface{}{"name": game.Name, "public": true}))
36+
game.Public = true
37+
Must(user.UpdateGame(gameID, game))
3738

3839
// Set the key as sponsor for the game
3940
Must(user.SetGameSponsor(gameID, shareID))
@@ -130,7 +131,8 @@ func (s *ApiKeyCascadePrivateShareTestSuite) TestNonCascadeDeleteDoesNotAffectPr
130131

131132
game := Must(user.UploadGame("alien-first-contact"))
132133
gameID := game.ID.String()
133-
Must(user.UpdateGame(gameID, map[string]interface{}{"name": game.Name, "public": true}))
134+
game.Public = true
135+
Must(user.UpdateGame(gameID, game))
134136
Must(user.SetGameSponsor(gameID, shareID))
135137
status := Must(user.EnablePrivateShare(gameID, shareID, nil))
136138
s.True(status.Enabled)

0 commit comments

Comments
 (0)