Skip to content

Commit

Permalink
Added error checking to cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Sep 4, 2024
1 parent 76c5200 commit c6ec19a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/unittest/reporters/downstream_reporter/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,16 @@ func TestReportWorkflowStartFirst(t *testing.T) {

mock_time.On("Now").Return(timeNow)

cacheReporter.ReportStepStart(executionId0, step1, cacao.NewVariables(expectedVariables))
err = cacheReporter.ReportStepStart(executionId0, step1, cacao.NewVariables(expectedVariables))
if err != nil {
t.Fail()
}

mock_time.On("Now").Return(timeNow)
cacheReporter.ReportStepEnd(executionId0, step1, cacao.NewVariables(), nil)
err = cacheReporter.ReportStepEnd(executionId0, step1, cacao.NewVariables(), nil)
if err != nil {
t.Fail()
}

expectedStarted, _ := time.Parse(layout, "2014-11-12T11:45:26.371Z")
expectedEnded, _ := time.Parse(layout, "0001-01-01T00:00:00Z")
Expand Down

0 comments on commit c6ec19a

Please sign in to comment.