Skip to content

Commit

Permalink
Check error when unmarshalling test data
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosNihelton committed Oct 18, 2023
1 parent 8440bfc commit c533e8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion end-to-end/purchase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c533e8f

Please sign in to comment.