diff --git a/crates/trusted-server-core/src/html_processor.rs b/crates/trusted-server-core/src/html_processor.rs
index ad69e51c5..e906ad79a 100644
--- a/crates/trusted-server-core/src/html_processor.rs
+++ b/crates/trusted-server-core/src/html_processor.rs
@@ -1637,7 +1637,7 @@ mod tests {
.expect("should process");
let html = std::str::from_utf8(&output).expect("should be utf8");
assert!(
- html.contains(".bids=JSON.parse(\"{}\")"),
+ html.contains("JSON.parse(\"{}\")"),
"should inject empty bids fallback when auction produced nothing"
);
}
@@ -1663,7 +1663,7 @@ mod tests {
.expect("should process");
let html = std::str::from_utf8(&output).expect("should be utf8");
assert!(
- !html.contains(".bids=JSON.parse"),
+ !html.contains("JSON.parse"),
"should NOT inject tsjs.bids when no slots matched"
);
}
diff --git a/crates/trusted-server-core/src/integrations/gpt.rs b/crates/trusted-server-core/src/integrations/gpt.rs
index f0b57ce96..4def0fe24 100644
--- a/crates/trusted-server-core/src/integrations/gpt.rs
+++ b/crates/trusted-server-core/src/integrations/gpt.rs
@@ -1196,6 +1196,46 @@ mod tests {
);
}
+ #[test]
+ fn head_inserts_bootstrap_installs_fallback_scheduler() {
+ // The `