Skip to content

Commit

Permalink
improve e2e test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Feb 15, 2023
1 parent 5049ccc commit 9b57d63
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/symbolicator-service/tests/integration/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ async fn test_basic_windows() {
);

if with_cache {
let objects_dir = cache_dir.path().join("objects").join("v0");
let objects_dir = cache_dir.path().join("objects");
let mut cached_objects = get_cache_files(&objects_dir);

// NOTE: the cache key depends on the exact location of the file, which is
Expand All @@ -494,8 +494,7 @@ async fn test_basic_windows() {
"{metadata:?} == {expected_metadata:?}"
);

// NOTE: this needs to be updated when bumping symcaches
let symcaches_dir = cache_dir.path().join("symcaches").join("v5");
let symcaches_dir = cache_dir.path().join("symcaches");
let mut cached_symcaches = get_cache_files(&symcaches_dir);

cached_symcaches.sort_by_key(|(_, size)| *size);
Expand All @@ -504,7 +503,7 @@ async fn test_basic_windows() {

let metadata_file = &cached_symcaches[0].0;
let metadata =
std::fs::read_to_string(objects_dir.join(metadata_file)).unwrap();
std::fs::read_to_string(symcaches_dir.join(metadata_file)).unwrap();
expected_metadata.push_str("b\n"); // this truely ends in `.pdb` now
assert_eq!(metadata, expected_metadata);
}
Expand Down

0 comments on commit 9b57d63

Please sign in to comment.