Closed MarkMichaelis closed 2 years ago
@MarkMichaelis "ping.exe" won't exist on UNIX platforms, so that doesn't work. I'll try to think of something that exists on a UNIX platform and on Windows so we can test that method.
Oh.. bummer... I thought ping
would work. I tried it on WSL - which is how I came up with the different command-line arguments. Hmmm.....
Yeah... I was surprised I had the "exe" extension and realized it was a problem when Cameron pointed raised the issue. :(
What if we check for "ping" and Assert.Inconclusive()
if it isn't available? Of course I'm not sure of an easy way to do that besides attempting to execute the process and catching the exception.
Do you have a better suggestion that "ping?" Preferably we use something that is available on both Linux and Windows in Azure DevOps.
@COsborn2, can you try this on your mac please and let us know what happens?
@COsborn2 - can you please check this works on Mac and Linux. If not, suggestions welcome. :)