Skip to content

Commit

Permalink
Expect IntersectionNotFound instead of AcquireFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Nov 29, 2022
1 parent cb0581b commit df2807f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-cluster/test/Test/DirectChainSpec.hs
Expand Up @@ -35,7 +35,7 @@ import Hydra.Chain (
PostChainTx (..),
PostTxError (..),
)
import Hydra.Chain.Direct (initialChainState, loadChainContext, withDirectChain)
import Hydra.Chain.Direct (IntersectionNotFoundException (..), initialChainState, loadChainContext, withDirectChain)
import Hydra.Chain.Direct.Handlers (DirectChainLog)
import Hydra.Chain.Direct.ScriptRegistry (queryScriptRegistry)
import Hydra.Chain.Direct.State (ChainContext)
Expand Down Expand Up @@ -312,7 +312,7 @@ spec = around showLogsOnFailure $ do
threadDelay 5 >> fail "should not execute main action but did?"

action `shouldThrow` \case
QueryAcquireException err -> err == AcquireFailurePointNotOnChain
IntersectionNotFoundException{} -> True
_ -> False

it "can publish and query reference scripts in a timely manner" $ \tracer -> do
Expand Down

0 comments on commit df2807f

Please sign in to comment.