diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/hercules-ci-api-agent.cabal b/hercules-ci-api-agent.cabal
--- a/hercules-ci-api-agent.cabal
+++ b/hercules-ci-api-agent.cabal
@@ -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
diff --git a/test/Hercules/API/Agent/Evaluate/EvaluateEvent/DerivationInfoSpec.hs b/test/Hercules/API/Agent/Evaluate/EvaluateEvent/DerivationInfoSpec.hs
--- a/test/Hercules/API/Agent/Evaluate/EvaluateEvent/DerivationInfoSpec.hs
+++ b/test/Hercules/API/Agent/Evaluate/EvaluateEvent/DerivationInfoSpec.hs
@@ -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
