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 committed Dec 13, 2023
1 parent 06a4a89 commit 6bd29fa
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 6bd29fa

Please sign in to comment.