Skip to content

Commit 902cc05

Browse files
committed
attempt to fix potential race condition
1 parent 9deedfe commit 902cc05

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkgs/test_core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.6.5-wip
22

33
* Increase SDK constraint to ^3.4.0.
4+
* Fix race condition when compiling multiple tests at once.
45

56
## 0.6.4
67

pkgs/test_core/lib/src/runner/vm/test_compiler.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ class _TestCompilerForLanguageVersion {
113113

114114
try {
115115
if (_frontendServerClient == null) {
116-
if (await testCache.exists()) {
117-
await testCache.copy(_outputDill.path);
116+
if (testCache.existsSync()) {
117+
testCache.copySync(_outputDill.path);
118118
}
119119
compilerOutput = await _createCompiler(tempFile.uri);
120120
} else {

0 commit comments

Comments
 (0)