fixed getters and setters + more idiomatic error handling
This commit is contained in:
@@ -167,9 +167,14 @@ try {
|
||||
container.detach = true;
|
||||
assert_eq(container.detach, true, "Container detach should be true");
|
||||
|
||||
// TODO: Test health_check setter and getter
|
||||
// Test health_check setter and getter
|
||||
print("Testing health_check setter and getter...");
|
||||
|
||||
let health_check_new = health_check_new("example_cmd");
|
||||
container.health_check = health_check_new;
|
||||
container.health_check.interval = "example_interval";
|
||||
assert_eq(container.health_check.cmd, "example_cmd", "Container health check cmd should match");
|
||||
assert_eq(container.health_check.interval, "example_interval", "Container health check interval should match");
|
||||
|
||||
// Test snapshotter setter and getter
|
||||
print("Testing snapshotter setter and getter...");
|
||||
container.snapshotter = "stargz";
|
||||
|
Reference in New Issue
Block a user