Skip to content

Commit

Permalink
Fixed broken tests after refactor
Browse files Browse the repository at this point in the history
Moved some things, needed to re-wire them

Signed-off-by: Dave Shanley <dave@quobix.com>
  • Loading branch information
daveshanley committed Jun 10, 2022
1 parent 43550ff commit 6b02503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion html-report/build_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ func (html htmlReport) GenerateReport(test bool) []byte {
RuleResults: html.results,
MaxViolations: MaxViolations,
SpecString: specStringData,
Generated: html.info.Generated,
}
if html.info != nil {
reportData.Generated = html.info.Generated
}
err := t.ExecuteTemplate(&byteBuf, "report", reportData)

Expand Down
2 changes: 1 addition & 1 deletion vacuum-report/vacuum_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func testhelp_generateReport() *VacuumReport {
vr := new(VacuumReport)
si := new(model.SpecInfo)

bytes, _ := ioutil.ReadFile("test_files/burgershop.openapi.yaml")
bytes, _ := ioutil.ReadFile("../model/test_files/burgershop.openapi.yaml")
si.SpecBytes = &bytes

vr.Generated = time.Now()
Expand Down

0 comments on commit 6b02503

Please sign in to comment.