common/test/server: Remove redundant argument

This commit is contained in:
Robert Swain 2017-06-07 18:27:26 +02:00
parent 9b887aa696
commit 39ec5fdf63

View file

@ -48,7 +48,7 @@ func CreateDatabase(command string, args []string, database string) error {
// CreateBackgroundCommand creates an executable command
// The Cmd being executed is returned. A channel is also returned,
// which will have any termination errors sent down it, followed immediately by the channel being closed.
func CreateBackgroundCommand(command string, args []string, suffix string) (*exec.Cmd, chan error) {
func CreateBackgroundCommand(command string, args []string) (*exec.Cmd, chan error) {
cmd := exec.Command(command, args...)
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stderr
@ -96,6 +96,5 @@ func StartServer(serverType string, serverArgs []string, suffix, configFilename,
return CreateBackgroundCommand(
filepath.Join(filepath.Dir(os.Args[0]), "dendrite-"+serverType+"-server"),
serverArgs,
suffix,
)
}