-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: replace hardcoded temp directory paths #974
Conversation
I replaced all the hardcoded paths under |
Hi, please update the PR to resolve CI issues. |
Signed-off-by: Pengyu Wang <[email protected]>
@@ -35,3 +35,4 @@ workspace-hack = { version = "0.1", path = "../../workspace-hack" } | |||
|
|||
[dev-dependencies] | |||
test-macros = { path = "../test-macros" } | |||
tempfile = "3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a new line at the end.
@@ -756,7 +757,7 @@ mod test { | |||
}; | |||
let res = engine.apply_snapshot(fake_snapshot, &["not_exist"]).await; | |||
assert!(res.is_err()); | |||
fs::remove_dir_all(dir).unwrap(); | |||
dir.close().unwrap(); | |||
} | |||
|
|||
#[test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test_engine_size
test also needs to be updated for consistency.
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 14 days |
This PR was closed because it has been stalled for 14 days with no activity. |
Please briefly answer these questions:
Fixes [feature]: replace hardcoding "/tmp/xxx" path #933
This PR replaces the hardcoded tmp path with calls to tempfile crate