Closed wyunchi-ms closed 8 months ago
Short term: create a Start-TestSleep that can skip sleeping in playback mode to replace Start-Sleep. Ref: https://github.com/Azure/azure-powershell/blob/main/tools/TestFx/Common.ps1#L643
Long term: add a linting rule to detect Start-Sleep in test cases.
@vidai-msft Please close the issue if it has been implemented.
Current if we want to sleep in the
Recprd
mode, we need callStart-Sleep
in the test script. But this will also sleep that long in thePlayback
mode. Find a way to run mockedsleep
inPlayback
mode will save about 40 mins for our full autorest test..