From 0775ed714a451d2311288734fe8abeff7d896124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Fri, 10 Nov 2023 15:14:12 +0100 Subject: [PATCH] Shelley/Node: harden an existing test --- .../Test/Golden/Shelley/Node/IssueOpCert.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Node/IssueOpCert.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Node/IssueOpCert.hs index faadd0e372..f5839cabc5 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Node/IssueOpCert.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Node/IssueOpCert.hs @@ -4,6 +4,7 @@ module Test.Golden.Shelley.Node.IssueOpCert where import Control.Monad (void) +import Test.Cardano.CLI.Aeson (assertHasMappings) import Test.Cardano.CLI.Util import Hedgehog (Property) @@ -37,8 +38,8 @@ hprop_golden_shelleyNodeIssueOpCert = propertyOnce . H.moduleWorkspace "tmp" $ \ , "--out-file", operationalCertFile ] - H.assertFileOccurences 1 "NodeOperationalCertificate" operationalCertFile - H.assertFileOccurences 1 "Next certificate issue number: 1" operationalCertificateIssueCounterFile + assertHasMappings [("type", "NodeOperationalCertificate")] operationalCertFile + assertHasMappings [("type", "NodeOperationalCertificateIssueCounter"), ("description", "Next certificate issue number: 1")] operationalCertificateIssueCounterFile H.assertEndsWithSingleNewline operationalCertFile H.assertEndsWithSingleNewline operationalCertificateIssueCounterFile