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:
Aleksandar Jankovic
2019-08-02 16:56:19 +01:00
committed by Nick Craig-Wood
parent 5be968c0ca
commit 6a3e301303
4 changed files with 56 additions and 4 deletions
+1 -1
View File
@@ -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()