packages feed

hercules-ci-api-agent 0.4.1.0 → 0.4.1.1

raw patch · 3 files changed

+15/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -5,6 +5,12 @@  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 0.4.1.1 - 2022-03-07++### Fixed++ - Flaky test+ ## 0.4.1.0 - 2021-09-06  ### Added
hercules-ci-api-agent.cabal view
@@ -1,7 +1,7 @@ cabal-version: 1.12  name:           hercules-ci-api-agent-version:        0.4.1.0+version:        0.4.1.1 synopsis:       API definition for Hercules CI Agent to talk to hercules-ci.com or Hercules CI Enterprise category:       API, CI, Testing, DevOps, Nix homepage:       https://github.com/hercules-ci/hercules-ci-agent#readme
test/Hercules/API/Agent/Evaluate/EvaluateEvent/DerivationInfoSpec.hs view
@@ -1,6 +1,6 @@ module Hercules.API.Agent.Evaluate.EvaluateEvent.DerivationInfoSpec where -import Data.Aeson (eitherDecode, encode)+import Data.Aeson (Value, eitherDecode, encode) import qualified Data.ByteString.Lazy as BL import Data.Map (fromList) import Hercules.API.Agent.Evaluate.EvaluateEvent.DerivationInfo@@ -26,4 +26,10 @@         eitherDecode jsonV2 `shouldBe` Right objectV2     describe "ToJSON" $ do       it "encodes v2 correctly" $ do-        encode objectV2 `shouldBe` jsonV2+        json (encode objectV2) `shouldBe` json (jsonV2)++json :: BL.ByteString -> Value+json lbs =+  case eitherDecode lbs of+    Left e -> error e+    Right r -> r