From 65c8d6fe217d1b485085903af907bacb0770da67 Mon Sep 17 00:00:00 2001 From: Muki Kiboigo Date: Mon, 1 Jun 2026 06:35:23 -0700 Subject: [PATCH] update CacheControl test --- src/network/cache/Cache.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"));