diff options
author | Anton Titov <[email protected]> | 2019-06-14 12:44:45 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2019-06-14 12:44:45 +0300 |
commit | 78724c084ac4db42e713c45ef8cb1453e8352183 (patch) | |
tree | a85abba72b65134a067f4f799b5e1d88a5101d3b /service/rpc/config_test.go | |
parent | 27e8cb3c4086012968b586fcbd5fd40737be2510 (diff) | |
parent | ac126193fb36fdf248336fa433cbd13602f2ae75 (diff) |
Merge pull request #162 from ovr/fcgi
Feature - FastCGI support for HTTP Service
Diffstat (limited to 'service/rpc/config_test.go')
-rw-r--r-- | service/rpc/config_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/service/rpc/config_test.go b/service/rpc/config_test.go index 6a2138d2..af261698 100644 --- a/service/rpc/config_test.go +++ b/service/rpc/config_test.go @@ -51,7 +51,7 @@ func TestConfig_ListenerUnix(t *testing.T) { t.Skip("not supported on " + runtime.GOOS) } - cfg := &Config{Listen: "unix://rpc.sock"} + cfg := &Config{Listen: "unix://file.sock"} ln, err := cfg.Listener() assert.NoError(t, err) @@ -59,7 +59,7 @@ func TestConfig_ListenerUnix(t *testing.T) { defer ln.Close() assert.Equal(t, "unix", ln.Addr().Network()) - assert.Equal(t, "rpc.sock", ln.Addr().String()) + assert.Equal(t, "file.sock", ln.Addr().String()) } func Test_Config_Error(t *testing.T) { @@ -71,7 +71,7 @@ func Test_Config_Error(t *testing.T) { ln, err := cfg.Listener() assert.Nil(t, ln) assert.Error(t, err) - assert.Equal(t, "invalid socket DSN (tcp://:6001, unix://rpc.sock)", err.Error()) + assert.Equal(t, "Invalid DSN (tcp://:6001, unix://file.sock)", err.Error()) } func Test_Config_ErrorMethod(t *testing.T) { @@ -102,7 +102,7 @@ func TestConfig_DialerUnix(t *testing.T) { t.Skip("not supported on " + runtime.GOOS) } - cfg := &Config{Listen: "unix://rpc.sock"} + cfg := &Config{Listen: "unix://file.sock"} ln, _ := cfg.Listener() defer ln.Close() @@ -113,7 +113,7 @@ func TestConfig_DialerUnix(t *testing.T) { defer conn.Close() assert.Equal(t, "unix", conn.RemoteAddr().Network()) - assert.Equal(t, "rpc.sock", conn.RemoteAddr().String()) + assert.Equal(t, "file.sock", conn.RemoteAddr().String()) } func Test_Config_DialerError(t *testing.T) { @@ -125,7 +125,7 @@ func Test_Config_DialerError(t *testing.T) { ln, err := cfg.Dialer() assert.Nil(t, ln) assert.Error(t, err) - assert.Equal(t, "invalid socket DSN (tcp://:6001, unix://rpc.sock)", err.Error()) + assert.Equal(t, "invalid socket DSN (tcp://:6001, unix://file.sock)", err.Error()) } func Test_Config_DialerErrorMethod(t *testing.T) { |