| Index: tests/stub-generator/test_config.dart
|
| diff --git a/tests/stub-generator/test_config.dart b/tests/stub-generator/test_config.dart
|
| index 4eb9e1e2716c675b8164e60dbbf3114a9f458493..63123883f74eb9452ce6ac2c2e3a3d8ae8176cc3 100644
|
| --- a/tests/stub-generator/test_config.dart
|
| +++ b/tests/stub-generator/test_config.dart
|
| @@ -21,6 +21,8 @@ class StubGeneratorTestSuite extends StandardTestSuite {
|
| }
|
| }
|
|
|
| + bool get requiresCleanTemporaryDirectory() => true;
|
| +
|
| void combineFiles(String filename,
|
| String stubsFile,
|
| Function onGenerated) {
|
| @@ -99,8 +101,8 @@ class StubGeneratorTestSuite extends StandardTestSuite {
|
| String classes,
|
| Function onGenerated) {
|
| testGeneratorStarted();
|
| - Directory temp = new Directory('');
|
| - temp.createTempSync();
|
| + Directory temp = createTemporaryDirectory(interfaceFile, '');
|
| +
|
| File stubsOutFile = new File("${temp.path}/${interfaceFile}");
|
| stubsOutFile.createSync();
|
| String stubsPath = stubsOutFile.fullPathSync();
|
|
|