diff --git a/e2e-tests-rust/src/utils.rs b/e2e-tests-rust/src/utils.rs index 64bf62e6..71de3b50 100644 --- a/e2e-tests-rust/src/utils.rs +++ b/e2e-tests-rust/src/utils.rs @@ -66,8 +66,7 @@ impl LockedPort { /// or is not needed anymore. impl Drop for LockedPort { fn drop(&mut self) { - self.lockfile - .unlock() + fs2::FileExt::unlock(&self.lockfile) .with_context(|| format!("failed to unlock lockfile for port={}", self.port)) .unwrap(); } diff --git a/spec-tests/src/utils.rs b/spec-tests/src/utils.rs index 8ba96c20..f5cadbc0 100644 --- a/spec-tests/src/utils.rs +++ b/spec-tests/src/utils.rs @@ -64,8 +64,7 @@ impl LockedPort { /// or is not needed anymore. impl Drop for LockedPort { fn drop(&mut self) { - self.lockfile - .unlock() + fs2::FileExt::unlock(&self.lockfile) .with_context(|| format!("failed to unlock lockfile for port={}", self.port)) .unwrap(); }