mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a594cd8991
Signed-off-by: Daniel Nephin <dnephin@docker.com>
17 lines
275 B
Go
17 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`")
|
|
}
|