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 a3a768c commit 010f7d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,13 @@ 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();

{
let storage = DiskStorage::new(tempdir.path().join("tokenstorage.json"))
.await
Expand Down

0 comments on commit 010f7d0

Please sign in to comment.