mirror of
https://github.com/moby/moby.git
synced 2025-11-02 05:13:42 +03:00
Removed unnecessary error output from dockerCmd
Changed method declaration. Fixed all calls to dockerCmd method to reflect the change. resolves #12355 Signed-off-by: bobby abbott <ttobbaybbob@gmail.com>
This commit is contained in:
@@ -142,7 +142,7 @@ func TestAttachAfterDetach(t *testing.T) {
|
||||
|
||||
// TestAttachDetach checks that attach in tty mode can be detached using the long container ID
|
||||
func TestAttachDetach(t *testing.T) {
|
||||
out, _, _ := dockerCmd(t, "run", "-itd", "busybox", "cat")
|
||||
out, _ := dockerCmd(t, "run", "-itd", "busybox", "cat")
|
||||
id := strings.TrimSpace(out)
|
||||
if err := waitRun(id); err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -217,7 +217,7 @@ func TestAttachDetach(t *testing.T) {
|
||||
|
||||
// TestAttachDetachTruncatedID checks that attach in tty mode can be detached
|
||||
func TestAttachDetachTruncatedID(t *testing.T) {
|
||||
out, _, _ := dockerCmd(t, "run", "-itd", "busybox", "cat")
|
||||
out, _ := dockerCmd(t, "run", "-itd", "busybox", "cat")
|
||||
id := stringid.TruncateID(strings.TrimSpace(out))
|
||||
if err := waitRun(id); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user