Skip to content

Lightpanda: the headless browser designed for AI and automation

update CacheControl test

Muki Kiboigo65c8d6fe217d
diff --git a/src/network/cache/Cache.zig b/src/network/cache/Cache.zig
index 96d1b3a73..0890c5a78 100644
--- a/src/network/cache/Cache.zig
+++ b/src/network/cache/Cache.zig
@@ -285,7 +285,10 @@ test "Cache: CacheControl.parse" {
try testing.expectEqual(null, CacheControl.parse("no-cache"));
try testing.expectEqual(null, CacheControl.parse("private"));
try testing.expectEqual(null, CacheControl.parse("max-age=300, no-store"));
- try testing.expectEqual(null, CacheControl.parse("no-cache, max-age=300"));
+ try testing.expectEqual(
+ CacheControl{ .max_age = 300, .must_revalidate = true },
+ CacheControl.parse("no-cache, max-age=300"),
+ );
try testing.expectEqual(null, CacheControl.parse("Private, max-age=300"));
try testing.expectEqual(null, CacheControl.parse("max-age=0"));