From a98c89b310e709f78d64e1321273f5aed17a79f1 Mon Sep 17 00:00:00 2001 From: lixiaobing10051267 Date: Fri, 4 Nov 2016 17:16:11 +0800 Subject: [PATCH] add error information to distinguish different test scene Signed-off-by: lixiaobing10051267 --- container_create_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container_create_test.go b/container_create_test.go index 89641038f7..15dbd5ea01 100644 --- a/container_create_test.go +++ b/container_create_test.go @@ -19,7 +19,7 @@ func TestContainerCreateError(t *testing.T) { } _, err := client.ContainerCreate(context.Background(), nil, nil, nil, "nothing") if err == nil || err.Error() != "Error response from daemon: Server error" { - t.Fatalf("expected a Server Error, got %v", err) + t.Fatalf("expected a Server Error while testing StatusInternalServerError, got %v", err) } // 404 doesn't automagitally means an unknown image @@ -28,7 +28,7 @@ func TestContainerCreateError(t *testing.T) { } _, err = client.ContainerCreate(context.Background(), nil, nil, nil, "nothing") if err == nil || err.Error() != "Error response from daemon: Server error" { - t.Fatalf("expected a Server Error, got %v", err) + t.Fatalf("expected a Server Error while testing StatusNotFound, got %v", err) } }