From 87abac554831d52e99ff609feff2e393b8e51e56 Mon Sep 17 00:00:00 2001 From: Felix Jung Date: Mon, 28 Oct 2024 20:45:31 +0100 Subject: [PATCH] Remove error message check --- datamodel/low/extraction_functions_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/datamodel/low/extraction_functions_test.go b/datamodel/low/extraction_functions_test.go index 07972119..cd501c94 100644 --- a/datamodel/low/extraction_functions_test.go +++ b/datamodel/low/extraction_functions_test.go @@ -880,7 +880,7 @@ func TestExtractArray_BadRefPropsTupe(t *testing.T) { assert.NoError(t, mErr) idx := index.NewSpecIndexWithConfig(&idxNode, index.CreateClosedAPIIndexConfig()) - yml = `limes: + yml = `limes: $ref: '#/components/parameters/cakes'` var cNode yaml.Node @@ -1893,7 +1893,6 @@ func TestLocateRefNode_Explode_NoSpecPath(t *testing.T) { assert.NotNil(t, i) assert.NotNil(t, e) assert.NotNil(t, c) - assert.ErrorContains(t, e, "http://smilfghfhfhfhfhes.com/bikes/components/schemas/thing.yaml#/components/schemas/thing") } func TestLocateRefNode_DoARealLookup(t *testing.T) { @@ -2107,7 +2106,7 @@ func TestArray_NotRefNotArray(t *testing.T) { assert.NoError(t, mErr) idx := index.NewSpecIndexWithConfig(&idxNode, index.CreateClosedAPIIndexConfig()) - yml = `limes: + yml = `limes: not: array` var cNode yaml.Node