summaryrefslogtreecommitdiffstats
path: root/src/context.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2020-03-15 18:12:25 +0100
committerGitHub <noreply@github.com>2020-03-15 12:12:25 -0500
commit56d475578ea508631275772127f49a6949fea6b0 (patch)
tree980e2bc8d4057a5ab32aad3bfe739e54135eff67 /src/context.rs
parentfef8cc8bbdbaaae4dd0f80d4c2643c33e2309c54 (diff)
fix: possible fix for Intermittent Test Failures in GH Actions (#987)
* fix: possible fix for Intermittent Test Failures in GH Actions * undo some of the chnages to directory.rs * typo * add docs
Diffstat (limited to 'src/context.rs')
-rw-r--r--src/context.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs
index b8cea1912..11cc911d9 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -350,6 +350,7 @@ mod tests {
.is_match(),
false
);
+ empty.close()?;
let rust = testdir(&["README.md", "Cargo.toml", "src/main.rs"])?;
let rust_dc = DirContents::from_path(&PathBuf::from(rust.path()))?;
@@ -363,6 +364,7 @@ mod tests {
.is_match(),
false
);
+ rust.close()?;
let java = testdir(&["README.md", "src/com/test/Main.java", "pom.xml"])?;
let java_dc = DirContents::from_path(&PathBuf::from(java.path()))?;
@@ -376,6 +378,7 @@ mod tests {
.is_match(),
false
);
+ java.close()?;
let node = testdir(&["README.md", "node_modules/lodash/main.js", "package.json"])?;
let node_dc = DirContents::from_path(&PathBuf::from(node.path()))?;
@@ -389,6 +392,7 @@ mod tests {
.is_match(),
true
);
+ node.close()?;
Ok(())
}