Skip to content

Commit

Permalink
Adds support for running proxy in CI environments (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz authored May 13, 2024
1 parent 473b53e commit 001e32c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev-proxy/ProxyEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ public async Task Run(CancellationToken? cancellationToken)

// we need this check or proxy will fail with an exception
// when run for example in VSCode's integrated terminal
if (!Console.IsInputRedirected)
if (!Console.IsInputRedirected &&
Environment.GetEnvironmentVariable("CI") is null)
{
ReadKeys();
}
Expand Down

0 comments on commit 001e32c

Please sign in to comment.