Update comments

This commit is contained in:
giongto35 2019-05-19 13:24:24 +08:00
parent e468db2d28
commit 437cb25f87
2 changed files with 4 additions and 2 deletions

View file

@ -364,9 +364,11 @@ func TestReconnectRoomNoLocal(t *testing.T) {
- A server X is initialized connecting to overlord
- Client A creates a room K on server X
- Server X is turned down, Client is closed
- room on local is deleted
- Spawn a new server and a new client connecting to the same room K
Expected behavior:
- The game should be continue
- room on local storage is refetched from cloud storage
- The game should be continue where it is closed
TODO: Current test just make sure the game is running, not check if the game is the same
*/
// This test only run if GCP storage is set

View file

@ -222,7 +222,7 @@ func (r *Room) SaveGame() error {
// saveOnlineRoomToLocal save online room to local
func (r *Room) saveOnlineRoomToLocal(roomID string, savepath string) error {
log.Println("Try loading game from cloud storage")
log.Println("Check if game is on cloud storage")
// If the game is not on local server
// Try to load from gcloud
data, err := r.onlineStorage.LoadFile(roomID)