Skip to content

Commit

Permalink
More resilent GUI integration test agent crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosNihelton committed Sep 12, 2023
1 parent 787fec0 commit ffa7838
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void main() {
await buildAgentExe(agentDir);
});

tearDownAll(() async {
tearDown(() async {
// kill all agent processes.
if (Platform.isWindows) {
await Process.run('taskkill.exe', ['/f', '/im', agentImageName]);
Expand All @@ -79,6 +79,10 @@ void main() {
[p.basenameWithoutExtension(agentImageName)],
);
}
File(p.join(tmp!.path, 'Ubuntu Pro', 'addr')).deleteSync();
});

tearDownAll(() async {
// Finally deletes the directory.
await Directory(agentDir).delete(recursive: true);
});
Expand Down

0 comments on commit ffa7838

Please sign in to comment.