Skip to content

Commit d85d94d

Browse files
committed
test: wait for Casework stub before version check
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
1 parent c9f8648 commit d85d94d

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎crates/registry-caseworkctl/src/provider_add.rs‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3974,16 +3974,12 @@ exit 1
39743974
#[cfg(unix)]
39753975
#[test]
39763976
fn version_mismatch_leaves_no_destination() {
3977-
use std::os::unix::fs::PermissionsExt;
3978-
39793977
let temporary = crate::canonical_tempdir();
39803978
let bregctl = temporary.path().join("bregctl");
3981-
fs::write(
3979+
crate::write_executable_stub(
39823980
&bregctl,
39833981
"#!/bin/sh\nprintf '%s\\n' 'bregctl incompatible-release-canary'\n",
3984-
)
3985-
.unwrap();
3986-
fs::set_permissions(&bregctl, fs::Permissions::from_mode(0o700)).unwrap();
3982+
);
39873983
let project = temporary.path().join("review");
39883984
let error = add(
39893985
&project,

0 commit comments

Comments
 (0)