Skip to content

Commit

Permalink
Fix timeout for installing win app (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
taoran6 committed Apr 7, 2023
1 parent 57d2ce9 commit 5abcf76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import com.microsoft.hydralab.agent.config.AppOptions;
import com.microsoft.hydralab.common.entity.common.StorageFileInfo;
import com.microsoft.hydralab.common.entity.common.TestTask;
import com.microsoft.hydralab.common.file.StorageServiceClientProxy;
import com.microsoft.hydralab.common.util.CommandOutputReceiver;
import com.microsoft.hydralab.common.util.FileUtil;
import com.microsoft.hydralab.common.file.StorageServiceClientProxy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
Expand Down Expand Up @@ -92,7 +92,7 @@ public void installWinApp(StorageFileInfo attachment) {
CommandOutputReceiver out = new CommandOutputReceiver(process.getInputStream(), log);
err.start();
out.start();
process.waitFor(60, TimeUnit.SECONDS);
process.waitFor(300, TimeUnit.SECONDS);
log.info("Install Win-App success");
} catch (Exception e) {
log.error("Install Win-App failed", e);
Expand Down

0 comments on commit 5abcf76

Please sign in to comment.