update CacheControl test

This commit is contained in:
Muki Kiboigo committed 2026-06-14 09:17:26 -07:00
1 parent dd6dbd27da
commit 65c8d6fe21
1 file changed
+4 -1
+4 -1
View File
@@ -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"));