loader logic revised
This commit is contained in:
@@ -191,8 +191,9 @@ func TestRawFileCRUDAndList(t *testing.T) {
|
||||
if missingExists {
|
||||
t.Fatal("missing.txt should not exist")
|
||||
}
|
||||
if missingPath != "" {
|
||||
t.Fatalf("missing file path = %q, want empty string", missingPath)
|
||||
wantMissingPath := filepath.Join(s.storageRoot, "missing.txt")
|
||||
if wantMissingPath != missingPath {
|
||||
t.Fatalf("missing file path = %q, want %q", missingPath, wantMissingPath)
|
||||
}
|
||||
|
||||
alphaData, err := s.ReadFile("nested/alpha.txt")
|
||||
@@ -478,7 +479,7 @@ func sampleState() client.State {
|
||||
{ID: client.GameID("game-1"), LastTurn: 12, ActiveTurn: 11},
|
||||
{ID: client.GameID("game-2"), LastTurn: 4, ActiveTurn: 4},
|
||||
},
|
||||
ActiveGameID: client.GameID("game-2"),
|
||||
ActiveGameID: new(client.GameID("game-2")),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user