test: initialize snapshot state in the struct literal
Verify Tessera GUI / verify (push) Successful in 7m44s

This commit is contained in:
2026-10-20 13:56:25 +08:00
parent 47ab2aa3a6
commit 1f64de48b9
+4 -2
View File
@@ -455,8 +455,10 @@ paint(ui.text("last"))"#;
#[test] #[test]
fn page_api_errors_and_late_failures_do_not_publish_partial_snapshots() { fn page_api_errors_and_late_failures_do_not_publish_partial_snapshots() {
let mut state = NamespaceState::default(); let mut state = NamespaceState {
state.submission = 1; submission: 1,
..NamespaceState::default()
};
state state
.commit(1, compile(PAGE, "app.main", 1).unwrap()) .commit(1, compile(PAGE, "app.main", 1).unwrap())
.unwrap(); .unwrap();