Skip to content

Commit

Permalink
fix: Delete confusing assertion in test
Browse files Browse the repository at this point in the history
The assertion implied that a version conflict can lead to a Right
value (maybe for either ElasticSearch or OpenSearch.) However, the
parsing logic would force this to be a Left value.
  • Loading branch information
supersven committed Nov 5, 2024
1 parent c3a7837 commit 05ba926
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Test/DocumentsSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec =
insertedConflict <- tryEsError $ insertData' cfg
case insertedConflict of
Right (res', _) -> liftIO $ isVersionConflict res' `shouldBe` True
Right _ -> liftIO $ expectationFailure "This should never not happen."
Left e -> liftIO $ errorStatus e `shouldBe` Just 409

it "indexes two documents in a parent/child relationship and checks that the child exists" $
Expand Down

0 comments on commit 05ba926

Please sign in to comment.