Skip to content

Commit 8bb6232

Browse files
alyssaisjiangliu
authored andcommitted
tempdir: fix test assuming that TMPDIR=/tmp
I had TMPDIR set to /run/user/1000, and this made this test fail. Signed-off-by: Alyssa Ross <[email protected]>
1 parent 0f740eb commit 8bb6232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/tempdir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ mod tests {
146146
let path = t.as_path();
147147
assert!(path.exists());
148148
assert!(path.is_dir());
149-
assert!(path.starts_with("/tmp/"));
149+
assert!(path.starts_with(temp_dir()));
150150
}
151151

152152
#[test]

0 commit comments

Comments
 (0)