mirror of https://github.com/docker/cli.git
de1523d221
For now, just verifying that an error is returned, but not checking the error message itself, because those are not under our control, and may change with different Go versions. ``` === Failed === FAIL: opts TestParseDockerDaemonHost (0.00s) hosts_test.go:87: tcp tcp:a.b.c.d address expected error "Invalid bind address format: tcp:a.b.c.d" return, got "parse tcp://tcp:a.b.c.d: invalid port \":a.b.c.d\" after host" and addr hosts_test.go:87: tcp tcp:a.b.c.d/path address expected error "Invalid bind address format: tcp:a.b.c.d/path" return, got "parse tcp://tcp:a.b.c.d/path: invalid port \":a.b.c.d\" after host" and addr === FAIL: opts TestParseTCP (0.00s) hosts_test.go:129: tcp tcp:a.b.c.d address expected error Invalid bind address format: tcp:a.b.c.d return, got parse tcp://tcp:a.b.c.d: invalid port ":a.b.c.d" after host and addr hosts_test.go:129: tcp tcp:a.b.c.d/path address expected error Invalid bind address format: tcp:a.b.c.d/path return, got parse tcp://tcp:a.b.c.d/path: invalid port ":a.b.c.d" after host and addr ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
config.go | ||
duration.go | ||
duration_test.go | ||
env.go | ||
env_test.go | ||
envfile.go | ||
envfile_test.go | ||
file.go | ||
gpus.go | ||
gpus_test.go | ||
hosts.go | ||
hosts_test.go | ||
hosts_unix.go | ||
hosts_windows.go | ||
ip.go | ||
ip_test.go | ||
mount.go | ||
mount_test.go | ||
network.go | ||
network_test.go | ||
opts.go | ||
opts_test.go | ||
opts_unix.go | ||
opts_windows.go | ||
parse.go | ||
port.go | ||
port_test.go | ||
quotedstring.go | ||
quotedstring_test.go | ||
runtime.go | ||
secret.go | ||
secret_test.go | ||
throttledevice.go | ||
ulimit.go | ||
ulimit_test.go | ||
weightdevice.go |