diff options
author | Wolfy-J <[email protected]> | 2018-06-06 13:39:07 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-06 13:39:07 +0300 |
commit | 7067d593f243e86a54f4ffd87a06c744e5636e07 (patch) | |
tree | 83ba4ab9503059e2383fe40a04be6f1e7d2b9f2f /server_config_test.go | |
parent | b49a888579be9dfc33069d168083c54fb354e24c (diff) |
command factory
Diffstat (limited to 'server_config_test.go')
-rw-r--r-- | server_config_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server_config_test.go b/server_config_test.go index 667cfced..bd3ee76b 100644 --- a/server_config_test.go +++ b/server_config_test.go @@ -58,3 +58,13 @@ 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_Cmd(t *testing.T) { + cfg := &ServerConfig{ + Command: "php php-src/tests/client.php pipes", + } + + cmd, err := cfg.makeCommand() + assert.NoError(t, err) + assert.NotNil(t, cmd) +} |