diff options
Diffstat (limited to 'internal/game/video_poker_cabinet_test.go')
| -rw-r--r-- | internal/game/video_poker_cabinet_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/game/video_poker_cabinet_test.go b/internal/game/video_poker_cabinet_test.go index 0e46c82..df45365 100644 --- a/internal/game/video_poker_cabinet_test.go +++ b/internal/game/video_poker_cabinet_test.go @@ -143,7 +143,11 @@ func TestVestaVideoPokerPayoutTiers(t *testing.T) { func TestPokerInterruptedTransactionRecovery(t *testing.T) { g, sess, _ := casinoCrapsGame(t, uxTestRoom) - g.DataDir = t.TempDir() + // Align the journal root with the account store's data root: Recover + // refuses op paths that escape the journal's parent directory, and the + // harness otherwise leaves g.DataDir (../../data) different from the + // temp dir the stores were built with. + g.DataDir = filepath.Dir(filepath.Dir(g.AccountStore.CharPath("alice"))) w := casinoWallet{g: g, p: sess.Player} stake, err := w.Wager(10) if err != nil { |
