Skip to content

Commit

Permalink
Fix storage test
Browse files Browse the repository at this point in the history
  • Loading branch information
threema-donat committed Jun 26, 2024
1 parent 564df17 commit 14fffcd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,14 @@ mod tests {
id_token: None,
};
let scope_set = ScopeSet::from(&["myscope"]);
let tempdir = tempfile::tempdir().unwrap();

let tempdir = tempfile::Builder::new()
.prefix("yup-oauth2-tests_")
.rand_bytes(15)
.tempdir()
.unwrap();

println!("{:?}", tempdir.path());
{
let storage = DiskStorage::new(tempdir.path().join("tokenstorage.json"))
.await
Expand Down

0 comments on commit 14fffcd

Please sign in to comment.