diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d89f3248..29a1f24e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,7 +48,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ needs.resolve.outputs.tag }} submodules: recursive diff --git a/crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs b/crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs index fc863c6c5..1874c1632 100644 --- a/crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs +++ b/crates/tinycomputer-engine/src/task/task_tests/persistence_tests.rs @@ -44,7 +44,13 @@ async fn a_paused_task_round_trips_into_a_fresh_controller() { let encoded = tasks.export_paused_task(&view.id).unwrap(); let serialized = std::str::from_utf8(&encoded).unwrap(); assert!(!serialized.contains("swordfish-secret")); - assert!(serialized.contains(&profile)); + let snapshot: serde_json::Value = serde_json::from_str(serialized).unwrap(); + assert_eq!( + snapshot + .pointer("/task/constraints/browser_profile") + .and_then(serde_json::Value::as_str), + Some(profile.as_str()) + ); drop(tasks); let (restored, script) = controller(vec![finished_run(