Skip to content

Commit

Permalink
Speedup test case by exiting immediately if installing in headless mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
peters committed Jun 29, 2020
1 parent 4c6dbaf commit 6e777f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Snap.Installer/Program.Install.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,11 @@ await snapFilesystem.FileCopyAsync(
}

done:
// Give user enough time to read final log message.
Thread.Sleep(exitCode == 0 ? 3000 : 10000);
if (!headless)
{
// Give user enough time to read final log message.
Thread.Sleep(exitCode == 0 ? 3000 : 10000);
}
environment.Shutdown();
}

Expand Down

0 comments on commit 6e777f8

Please sign in to comment.