fixed getters and setters + more idiomatic error handling

This commit is contained in:
Maxime Van Hees
2025-07-10 11:52:45 +02:00
parent 568a5b0a49
commit 0e63efda61
5 changed files with 133 additions and 173 deletions

View File

@@ -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";