diff options
author | Wolfy-J <[email protected]> | 2018-06-07 15:39:24 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-07 15:39:24 +0300 |
commit | 06e3569fabba6f2e36b5aac4df81484526003a9f (patch) | |
tree | 4b130de22bca32de46af3d6ec33577aaa6bdb6e0 | |
parent | 996f00425f1eaf681a840a0dce8ab53b422e1116 (diff) |
go fmt
-rw-r--r-- | error_buffer_test.go | 2 | ||||
-rw-r--r-- | errors_test.go | 2 | ||||
-rw-r--r-- | server.go | 4 | ||||
-rw-r--r-- | server_config.go | 2 | ||||
-rw-r--r-- | server_config_test.go | 4 | ||||
-rw-r--r-- | server_test.go | 4 | ||||
-rw-r--r-- | static_pool_test.go | 7 |
7 files changed, 12 insertions, 13 deletions
diff --git a/error_buffer_test.go b/error_buffer_test.go index 834369c1..afbc80e2 100644 --- a/error_buffer_test.go +++ b/error_buffer_test.go @@ -1,9 +1,9 @@ package roadrunner import ( - "testing" "bytes" "github.com/stretchr/testify/assert" + "testing" ) func TestErrBuffer_Write_Len(t *testing.T) { diff --git a/errors_test.go b/errors_test.go index 531ef675..6bb650af 100644 --- a/errors_test.go +++ b/errors_test.go @@ -1,9 +1,9 @@ package roadrunner import ( + "errors" "github.com/stretchr/testify/assert" "testing" - "errors" ) func Test_JobError_Error(t *testing.T) { @@ -1,9 +1,9 @@ package roadrunner import ( - "sync" - "os/exec" "fmt" + "os/exec" + "sync" ) const ( diff --git a/server_config.go b/server_config.go index b8c3c408..54f7120b 100644 --- a/server_config.go +++ b/server_config.go @@ -8,7 +8,7 @@ import ( ) const ( - FactoryPipes = iota + FactoryPipes = iota FactorySocket ) diff --git a/server_config_test.go b/server_config_test.go index e3ef6ec0..521b07b9 100644 --- a/server_config_test.go +++ b/server_config_test.go @@ -1,9 +1,9 @@ package roadrunner import ( - "testing" "github.com/stretchr/testify/assert" "runtime" + "testing" ) func Test_ServerConfig_PipeFactory(t *testing.T) { @@ -32,7 +32,7 @@ func Test_ServerConfig_SocketFactory(t *testing.T) { assert.NoError(t, err) assert.IsType(t, &SocketFactory{}, f) - assert.Equal(t, "tcp", f.(*SocketFactory).ls.Addr().Network(), ) + assert.Equal(t, "tcp", f.(*SocketFactory).ls.Addr().Network()) assert.Equal(t, "[::]:9111", f.(*SocketFactory).ls.Addr().String()) cfg = &ServerConfig{Relay: "tcp://localhost:9112"} diff --git a/server_test.go b/server_test.go index 2de73e0c..64b240d1 100644 --- a/server_test.go +++ b/server_test.go @@ -1,11 +1,11 @@ package roadrunner import ( - "testing" "github.com/stretchr/testify/assert" + "os/exec" "runtime" + "testing" "time" - "os/exec" ) func TestServer_PipesEcho(t *testing.T) { diff --git a/static_pool_test.go b/static_pool_test.go index 58e208d5..97872609 100644 --- a/static_pool_test.go +++ b/static_pool_test.go @@ -2,13 +2,13 @@ package roadrunner import ( "github.com/stretchr/testify/assert" + "log" "os/exec" "runtime" - "testing" - "time" "strconv" - "log" "sync" + "testing" + "time" ) var cfg = Config{ @@ -199,7 +199,6 @@ func Test_StaticPool_Broken_FromOutside(t *testing.T) { } } - func Test_StaticPool_AllocateTimeout(t *testing.T) { p, err := NewPool( func() *exec.Cmd { return exec.Command("php", "php-src/tests/client.php", "delay", "pipes") }, |