From 132f5ee7d493c206c3ad519fec2573705b428043 Mon Sep 17 00:00:00 2001 From: Wang Long Date: Thu, 22 Sep 2016 20:15:54 +0800 Subject: [PATCH] [unittest] add extra ErrorCode in TestErrorCode testcase Signed-off-by: Wang Long --- libcontainer/error_test.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libcontainer/error_test.go b/libcontainer/error_test.go index 4bf4c9f5..36841ad8 100644 --- a/libcontainer/error_test.go +++ b/libcontainer/error_test.go @@ -4,12 +4,17 @@ import "testing" func TestErrorCode(t *testing.T) { codes := map[ErrorCode]string{ - IdInUse: "Id already in use", - InvalidIdFormat: "Invalid format", - ContainerPaused: "Container paused", - ConfigInvalid: "Invalid configuration", - SystemError: "System error", - ContainerNotExists: "Container does not exist", + IdInUse: "Id already in use", + InvalidIdFormat: "Invalid format", + ContainerPaused: "Container paused", + ConfigInvalid: "Invalid configuration", + SystemError: "System error", + ContainerNotExists: "Container does not exist", + ContainerNotStopped: "Container is not stopped", + ContainerNotRunning: "Container is not running", + ConsoleExists: "Console exists for process", + ContainerNotPaused: "Container is not paused", + NoProcessOps: "No process operations", } for code, expected := range codes {