mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2024-11-22 13:16:04 +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)
|
||||
}
|
||||
|
||||
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() {
|
||||
require.NotNil(t.T(), t.manager.jobs)
|
||||
err := t.manager.RunJob("doesn't exist")
|
||||
|
Loading…
Reference in New Issue
Block a user