diff options
author | Valery Piashchynski <[email protected]> | 2020-11-27 11:19:27 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-27 11:19:27 +0300 |
commit | b5020bfce6b5362400cb9b578fe32c1a6ed5d61a (patch) | |
tree | 902afaca9b225cfe9e3b498b97cc83dec13fcd9a /static_pool_test.go | |
parent | 46ae5dcc22d971b0f909bce23ec8fdef26811ed6 (diff) | |
parent | 849a03b8ead6fe8e65ab1a1e5653a57c12502dd1 (diff) |
Merge pull request #416 from spiral/feature/static_pool_triggerv2.0.0-alpha22
Add new pool event: EventNoFreeWorkers
Diffstat (limited to 'static_pool_test.go')
-rwxr-xr-x | static_pool_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/static_pool_test.go b/static_pool_test.go index e97e2034..2823cbc4 100755 --- a/static_pool_test.go +++ b/static_pool_test.go @@ -153,7 +153,7 @@ func Test_StaticPool_JobError(t *testing.T) { assert.Nil(t, res.Body) assert.Nil(t, res.Context) - if errors.Is(errors.Exec, err) == false { + if errors.Is(errors.ErrSoftJob, err) == false { t.Fatal("error should be of type errors.Exec") } @@ -273,6 +273,9 @@ func Test_StaticPool_AllocateTimeout(t *testing.T) { }, ) assert.Error(t, err) + if !errors.Is(errors.WorkerAllocate, err) { + t.Fatal("error should be of type WorkerAllocate") + } assert.Nil(t, p) } |