accounting: add call to clear stats
- Make calls more consistent by changing path to kebab case. - Add stacktrace information to job panics
This commit is contained in:
committed by
Nick Craig-Wood
parent
5be968c0ca
commit
6a3e301303
@@ -184,7 +184,7 @@ func TestJobRunPanic(t *testing.T) {
|
||||
assert.Equal(t, false, job.EndTime.IsZero())
|
||||
assert.Equal(t, rc.Params{}, job.Output)
|
||||
assert.True(t, job.Duration >= floatSleepTime)
|
||||
assert.Equal(t, "panic received: boom", job.Error)
|
||||
assert.Contains(t, job.Error, "panic received: boom")
|
||||
assert.Equal(t, false, job.Success)
|
||||
assert.Equal(t, true, job.Finished)
|
||||
job.mu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user