DexterPOSH/PSRemotely

Appveyor - issue with creating PSSession inside tests

Closed this issue · 2 comments

As part of the integration and unit tests, we create PSSession to the localhost to test things.
These are failing. Created a simple POC for this

Code - https://github.com/DexterPOSH/test/blob/master/build.ps1

Appveyor Build details - See the build messages

Fixed this issue by specifying -EnableNetworkAccess switch while creating a loopback session.
Strange though !

Guessing that this has to be done with the integration tests as well.

Fixed with the above workaround.