8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe791f commit e2a6e5eCopy full SHA for e2a6e5e
agent/agentscripts/agentscripts_test.go
@@ -144,6 +144,12 @@ func TestScriptReportsTiming(t *testing.T) {
144
145
timing := timings[0]
146
require.Equal(t, int32(0), timing.ExitCode)
147
+ if assert.True(t, timing.Start.IsValid(), "start time should be valid") {
148
+ require.NotZero(t, timing.Start.AsTime(), "start time should not be zero")
149
+ }
150
+ if assert.True(t, timing.End.IsValid(), "end time should be valid") {
151
+ require.NotZero(t, timing.End.AsTime(), "end time should not be zero")
152
153
require.GreaterOrEqual(t, timing.End.AsTime(), timing.Start.AsTime())
154
}
155
0 commit comments