mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2024-11-29 16:36:06 +03:00
additional test for JobManager
This commit is contained in:
parent
f395f06363
commit
c3d24f3298
@ -419,6 +419,12 @@ func (t *JobManagerTest) Test_UpdateJob() {
|
|||||||
assert.NoError(t.T(), err)
|
assert.NoError(t.T(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (t *JobManagerTest) Test_StopJobDoesntExist() {
|
||||||
|
require.NotNil(t.T(), t.manager.jobs)
|
||||||
|
err := t.manager.StopJob("doesn't exist")
|
||||||
|
assert.EqualError(t.T(), err, "cannot find job `doesn't exist`")
|
||||||
|
}
|
||||||
|
|
||||||
func (t *JobManagerTest) Test_RunJobDoesntExist() {
|
func (t *JobManagerTest) Test_RunJobDoesntExist() {
|
||||||
require.NotNil(t.T(), t.manager.jobs)
|
require.NotNil(t.T(), t.manager.jobs)
|
||||||
err := t.manager.RunJob("doesn't exist")
|
err := t.manager.RunJob("doesn't exist")
|
||||||
|
Loading…
Reference in New Issue
Block a user