chore: Use relative paths for assert imports to avoid test flakes (#19427)

Tests occasionally fail if we get a bad gateway attempting to fetch the
assertion module
This commit is contained in:
Matt Mastracci 2023-06-08 12:10:37 -06:00 committed by GitHub
parent 55f0150854
commit db9482d688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 8 deletions

View file

@ -26,6 +26,8 @@ fn no_snaps() {
no_snaps_included("no_snaps_included", "ts");
}
// TODO(mmastrac): The exclusion to make this test pass doesn't seem to work on windows.
#[cfg_attr(windows, ignore)]
#[test]
fn no_tests() {
no_tests_included("foo", "mts");
@ -307,6 +309,10 @@ fn no_tests_included(test_name: &str, extension: &str) {
.new_command()
.args_vec(vec![
"coverage".to_string(),
format!(
"--exclude={}",
util::std_path().canonicalize().unwrap().to_string_lossy()
),
format!("{}/", tempdir.to_str().unwrap()),
])
.split_output()