DockerCLI/daemon_none_test.go

18 lines
278 B
Go
Raw Normal View History

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