Skip to content

Commit

Permalink
Do not reuse persistence handle across several servers
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly authored and ch1bo committed Dec 14, 2023
1 parent 2447ac6 commit 63a1a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-node/test/Hydra/API/ServerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ spec = describe "ServerSpec" $
guard $ v ^? key "headStatus" == Just (Aeson.String "Initializing")
guard $ v ^? key "snapshotUtxo" == Just expectedUtxos

-- expect the api server to load events from apiPersistence and project headStatus correctly
withTestAPIServer port alice apiPersistence tracer $ \_ -> do
newApiPersistence <- createPersistenceIncremental $ persistenceDir <> "/server-output"
withTestAPIServer port alice newApiPersistence tracer $ \_ -> do
waitForValue port $ \v -> do
guard $ v ^? key "headStatus" == Just (Aeson.String "Initializing")
guard $ v ^? key "snapshotUtxo" == Just expectedUtxos
Expand Down

0 comments on commit 63a1a83

Please sign in to comment.