DockerCLI/daemon_none_test.go

18 lines
275 B
Go

// +build !daemon
package main
import (
"testing"
"github.com/docker/docker/pkg/testutil/assert"
)
func TestDaemonCommand(t *testing.T) {
cmd := newDaemonCommand()
cmd.SetArgs([]string{"--help"})
err := cmd.Execute()
assert.Error(t, err, "Please run `dockerd`")
}