From 654c3b3d98f128b17137d8d957e22952f7cfe977 Mon Sep 17 00:00:00 2001 From: cfal Date: Wed, 9 Aug 2023 18:14:28 +0800 Subject: [PATCH] integration-tests/common/client.go: use MustCreateJob to catch invalid status codes --- integration-tests/common/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/common/client.go b/integration-tests/common/client.go index e027f423..2ea9e863 100644 --- a/integration-tests/common/client.go +++ b/integration-tests/common/client.go @@ -127,7 +127,7 @@ func (cc *ChainlinkClient) CreateJobsForContract(chainId, p2pPort, mockUrl strin OCR2OracleSpec: oracleSpec, } - _, _, err := cc.ChainlinkNodes[0].CreateJob(jobSpec) + _, err := cc.ChainlinkNodes[0].MustCreateJob(jobSpec) if err != nil { return err } @@ -178,7 +178,7 @@ func (cc *ChainlinkClient) CreateJobsForContract(chainId, p2pPort, mockUrl strin OCR2OracleSpec: oracleSpec, ObservationSource: client.ObservationSourceSpecBridge(sourceValueBridge), } - _, _, err = n.CreateJob(jobSpec) + _, err = n.MustCreateJob(jobSpec) if err != nil { return err }