summaryrefslogtreecommitdiff
path: root/server_config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'server_config_test.go')
-rw-r--r--server_config_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/server_config_test.go b/server_config_test.go
index 521b07b9..74878782 100644
--- a/server_config_test.go
+++ b/server_config_test.go
@@ -73,3 +73,11 @@ func Test_ServerConfig_ErrorFactory(t *testing.T) {
assert.Error(t, err)
assert.Equal(t, "invalid relay DSN (pipes, tcp://:6001, unix://rr.sock)", err.Error())
}
+
+func Test_ServerConfig_ErrorMethod(t *testing.T) {
+ cfg := &ServerConfig{Relay: "xinu://unix.sock"}
+
+ f, err := cfg.makeFactory()
+ assert.Nil(t, f)
+ assert.Error(t, err)
+}