diff options
| author | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
| commit | 9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch) | |
| tree | 0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/video_poker_cabinet_test.go | |
| parent | 4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff) | |
| download | thehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz | |
refactor: split casino.go, dedup helpers, remove audit docs
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 { |
