diff options
author | Wolfy-J <[email protected]> | 2019-12-23 15:14:02 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-12-23 15:14:02 +0300 |
commit | 1d225f1e88d176c955111d2a033ab0f14834f93e (patch) | |
tree | b3f46fb7c6588bfadfac7495bdd4cb924d96ac92 | |
parent | 43440ff00c7b77ec2af8195cc922a9c15abdcdde (diff) |
- check before erasing unix sock
-rw-r--r-- | pipe_factory_test.go | 1 | ||||
-rw-r--r-- | service/rpc/config_test.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pipe_factory_test.go b/pipe_factory_test.go index 27d1f74d..08c47d94 100644 --- a/pipe_factory_test.go +++ b/pipe_factory_test.go @@ -14,6 +14,7 @@ func Test_Pipe_Start(t *testing.T) { assert.NotNil(t, w) go func() { + assert.NoError(t, w.Wait()) }() diff --git a/service/rpc/config_test.go b/service/rpc/config_test.go index 6791128b..c65e7415 100644 --- a/service/rpc/config_test.go +++ b/service/rpc/config_test.go @@ -81,7 +81,7 @@ func Test_Config_Error(t *testing.T) { ln, err := cfg.Listener() assert.Nil(t, ln) assert.Error(t, err) - assert.Equal(t, "Invalid DSN (tcp://:6001, unix://file.sock)", err.Error()) + assert.Equal(t, "invalid DSN (tcp://:6001, unix://file.sock)", err.Error()) } func Test_Config_ErrorMethod(t *testing.T) { |