@@ -28,7 +28,7 @@ import * as path from 'path';
28
28
import * as vscode from 'vscode' ;
29
29
import * as myExplorer from '../../../../views/projects' ;
30
30
import { CodeAction , commands , extensions , Selection , Uri , window , workspace , TreeItem } from 'vscode' ;
31
- import { assertWorkspace , awaitClient , dumpJava , findClusters , getFilePaths , openFile , prepareProject , replaceCode } from '../../testutils' ;
31
+ import { addSleepIfWindowsPlatform , assertWorkspace , awaitClient , dumpJava , findClusters , getFilePaths , openFile , prepareProject , replaceCode } from '../../testutils' ;
32
32
import { FORMATTED_POM_XML , SAMPLE_CODE_FORMAT_DOCUMENT , SAMPLE_CODE_SORT_IMPORTS , SAMPLE_CODE_UNUSED_IMPORTS } from '../../constants' ;
33
33
import { extCommands } from '../../../../commands/commands' ;
34
34
@@ -124,7 +124,7 @@ suite('Extension Test Suite', function () {
124
124
test ( "Sort imports" , async ( ) => {
125
125
const editor = await openFile ( filePaths . sortImports ) ;
126
126
await replaceCode ( editor , SAMPLE_CODE_SORT_IMPORTS ) ;
127
-
127
+ await addSleepIfWindowsPlatform ( ) ;
128
128
const isSaved = await editor . document . save ( ) ;
129
129
assert . ok ( isSaved , "document cannot be saved" ) ;
130
130
@@ -139,7 +139,7 @@ suite('Extension Test Suite', function () {
139
139
test ( "Remove unused imports" , async ( ) => {
140
140
const editor = await openFile ( filePaths . unusedImports ) ;
141
141
await replaceCode ( editor , SAMPLE_CODE_UNUSED_IMPORTS ) ;
142
-
142
+ await addSleepIfWindowsPlatform ( ) ;
143
143
const isSaved = await editor . document . save ( ) ;
144
144
assert . ok ( isSaved , "document cannot be saved" ) ;
145
145
0 commit comments