Skip to content

Commit

Permalink
Fixed test causing stack overflow.
Browse files Browse the repository at this point in the history
Signed-off-by: Quobix <dave@quobix.com>
  • Loading branch information
daveshanley authored and Baliedge committed Aug 29, 2023
1 parent df9f819 commit 21bf650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datamodel/low/v3/paths_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func TestPaths_Build_FailRef(t *testing.T) {

var idxNode yaml.Node
_ = yaml.Unmarshal([]byte(yml), &idxNode)

idx := index.NewSpecIndex(&idxNode)

var n Paths
Expand Down Expand Up @@ -128,7 +129,7 @@ func TestPaths_Build_FailRefDeadEnd(t *testing.T) {
$ref: '#/nowhere'
"/some/path":
get:
$ref: '#/~1some~1path/get'
$ref: '#/no/path'
"/another/path":
$ref: '#/~1some~1path'`

Expand Down

0 comments on commit 21bf650

Please sign in to comment.