diff options
author | Valery Piashchynski <[email protected]> | 2020-12-15 13:31:40 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-15 13:31:40 +0300 |
commit | b44d272312389691920e42e5295395bef0d3b769 (patch) | |
tree | 1c826999423e59db5b7dab1184725e22468ecfbd /static_pool_test.go | |
parent | 673da74925dee5c62064d3304289ae81cb499217 (diff) | |
parent | 7b0a6720c21056ed4b922eb5b1b8a91a44dc3638 (diff) |
Merge pull request #447 from spiral/feature/goridge3
Feature/goridge3
Diffstat (limited to 'static_pool_test.go')
-rwxr-xr-x | static_pool_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/static_pool_test.go b/static_pool_test.go index 747f26c4..33799c40 100755 --- a/static_pool_test.go +++ b/static_pool_test.go @@ -82,7 +82,7 @@ func Test_StaticPool_Echo(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, res) assert.NotNil(t, res.Body) - assert.Nil(t, res.Context) + assert.Empty(t, res.Context) assert.Equal(t, "hello", res.String()) } @@ -106,7 +106,7 @@ func Test_StaticPool_Echo_NilContext(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, res) assert.NotNil(t, res.Body) - assert.Nil(t, res.Context) + assert.Empty(t, res.Context) assert.Equal(t, "hello", res.String()) } @@ -129,7 +129,7 @@ func Test_StaticPool_Echo_Context(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, res) - assert.Nil(t, res.Body) + assert.Empty(t, res.Body) assert.NotNil(t, res.Context) assert.Equal(t, "world", string(res.Context)) @@ -214,7 +214,7 @@ func Test_StaticPool_Broken_FromOutside(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, res) assert.NotNil(t, res.Body) - assert.Nil(t, res.Context) + assert.Empty(t, res.Context) assert.Equal(t, "hello", res.String()) assert.Equal(t, runtime.NumCPU(), len(p.Workers())) @@ -293,7 +293,7 @@ func Test_StaticPool_Replace_Worker(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, res) assert.NotNil(t, res.Body) - assert.Nil(t, res.Context) + assert.Empty(t, res.Context) assert.NotEqual(t, lastPID, string(res.Body)) lastPID = string(res.Body) @@ -332,7 +332,7 @@ func Test_StaticPool_Debug_Worker(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, res) assert.NotNil(t, res.Body) - assert.Nil(t, res.Context) + assert.Empty(t, res.Context) assert.NotEqual(t, lastPID, string(res.Body)) lastPID = string(res.Body) @@ -372,7 +372,7 @@ func Test_StaticPool_Stop_Worker(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, res) assert.NotNil(t, res.Body) - assert.Nil(t, res.Context) + assert.Empty(t, res.Context) assert.NotEqual(t, lastPID, string(res.Body)) lastPID = string(res.Body) |