Skip to content

Commit

Permalink
Fixed broken test
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Shanley <[email protected]>
  • Loading branch information
daveshanley committed Jul 22, 2023
1 parent cb5bafe commit db0359b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions document_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,12 @@ func TestDocument_RenderAndReload_Swagger(t *testing.T) {

func TestDocument_BuildModelPreBuild(t *testing.T) {
petstore, _ := ioutil.ReadFile("test_specs/petstorev3.json")
_, e := NewDocument(petstore)
assert.Len(t, e, 0)
doc, e := NewDocument(petstore)
assert.NoError(t, e)
doc.BuildV3Model()
doc.BuildV3Model()
_, _, _, er := doc.RenderAndReload()
assert.Len(t, er, 0)
}

func TestDocument_AnyDoc(t *testing.T) {
Expand Down

0 comments on commit db0359b

Please sign in to comment.