@@ -28,7 +28,7 @@ import * as path from 'path';
2828import * as vscode from 'vscode' ;
2929import * as myExplorer from '../../../../views/projects' ;
3030import { 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' ;
3232import { FORMATTED_POM_XML , SAMPLE_CODE_FORMAT_DOCUMENT , SAMPLE_CODE_SORT_IMPORTS , SAMPLE_CODE_UNUSED_IMPORTS } from '../../constants' ;
3333import { extCommands } from '../../../../commands/commands' ;
3434
@@ -124,7 +124,7 @@ suite('Extension Test Suite', function () {
124124 test ( "Sort imports" , async ( ) => {
125125 const editor = await openFile ( filePaths . sortImports ) ;
126126 await replaceCode ( editor , SAMPLE_CODE_SORT_IMPORTS ) ;
127-
127+ await addSleepIfWindowsPlatform ( ) ;
128128 const isSaved = await editor . document . save ( ) ;
129129 assert . ok ( isSaved , "document cannot be saved" ) ;
130130
@@ -139,7 +139,7 @@ suite('Extension Test Suite', function () {
139139 test ( "Remove unused imports" , async ( ) => {
140140 const editor = await openFile ( filePaths . unusedImports ) ;
141141 await replaceCode ( editor , SAMPLE_CODE_UNUSED_IMPORTS ) ;
142-
142+ await addSleepIfWindowsPlatform ( ) ;
143143 const isSaved = await editor . document . save ( ) ;
144144 assert . ok ( isSaved , "document cannot be saved" ) ;
145145
0 commit comments