Answer stability round 1: 0 🔴, 2 🟡 (0 misread); run CI's image untagged and state where the socket must be

This commit is contained in:
2026-11-18 18:05:39 +01:00
parent 59c319ebb4
commit aa62b081fb
5 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class RunHeavy(unittest.TestCase):
def test_a_docker_run_without_limits_gets_three_quarters_of_the_memory_split_across_the_slots(self):
memory = read_memory()
assert memory is not None, "this test reads the share from /proc/meminfo, which only Linux has"
assert memory is not None, "this test needs MemTotal and MemAvailable from /proc/meminfo: run it on Linux"
share = f"{memory.total * 3 // 4 // slot_count(usable_cpus()) // 1024}m"
result = self.run_tool("docker", "run", "--rm", "img", "true", env=self.fake_docker())
self.assertEqual((result.returncode, result.stdout), (0, f"run --memory {share} --memory-swap {share} --rm img true\n"))