diff options
author | Wolfy-J <[email protected]> | 2019-12-23 15:20:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-12-23 15:20:57 +0300 |
commit | d39e20a58c8a40eefe6e5d6761f78f38f024b46e (patch) | |
tree | cd4f7f514cc1b735bef07f0228e7f41bf52c5d8d /server_config_test.go | |
parent | 1d225f1e88d176c955111d2a033ab0f14834f93e (diff) |
- check before erasing unix sock
Diffstat (limited to 'server_config_test.go')
-rw-r--r-- | server_config_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server_config_test.go b/server_config_test.go index 4f26d6ab..303eba90 100644 --- a/server_config_test.go +++ b/server_config_test.go @@ -71,6 +71,10 @@ func Test_ServerConfig_UnixSocketFactory(t *testing.T) { cfg := &ServerConfig{Relay: "unix://unix.sock"} f, err := cfg.makeFactory() + if err != nil { + t.Error(err) + } + defer func() { err := f.Close() if err != nil { |