Skip to content

Commit 132f5ee

Browse files
committed
[unittest] add extra ErrorCode in TestErrorCode testcase
Signed-off-by: Wang Long <[email protected]>
1 parent a2a6e82 commit 132f5ee

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

libcontainer/error_test.go

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ import "testing"
44

55
func TestErrorCode(t *testing.T) {
66
codes := map[ErrorCode]string{
7-
IdInUse: "Id already in use",
8-
InvalidIdFormat: "Invalid format",
9-
ContainerPaused: "Container paused",
10-
ConfigInvalid: "Invalid configuration",
11-
SystemError: "System error",
12-
ContainerNotExists: "Container does not exist",
7+
IdInUse: "Id already in use",
8+
InvalidIdFormat: "Invalid format",
9+
ContainerPaused: "Container paused",
10+
ConfigInvalid: "Invalid configuration",
11+
SystemError: "System error",
12+
ContainerNotExists: "Container does not exist",
13+
ContainerNotStopped: "Container is not stopped",
14+
ContainerNotRunning: "Container is not running",
15+
ConsoleExists: "Console exists for process",
16+
ContainerNotPaused: "Container is not paused",
17+
NoProcessOps: "No process operations",
1318
}
1419

1520
for code, expected := range codes {

0 commit comments

Comments
 (0)