From c533e8f854cfa86f88ae74803313b144dfaf7c77 Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 18 Oct 2023 11:35:29 -0300 Subject: [PATCH] Check error when unmarshalling test data --- end-to-end/purchase_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/end-to-end/purchase_test.go b/end-to-end/purchase_test.go index 5a257db43..f52d14c00 100644 --- a/end-to-end/purchase_test.go +++ b/end-to-end/purchase_test.go @@ -87,7 +87,8 @@ func TestPurchase(t *testing.T) { os.Exit(1) } - yaml.Unmarshal(testData, &storeSettings) + err = yaml.Unmarshal(testData, &storeSettings) + require.NoError(t, err, "Setup: Unmarshalling test data should return no error") store := storemockserver.NewServer(storeSettings) if !tc.storeDown {