diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs index a8c7ac27d93..fc9d1799008 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs @@ -521,7 +521,7 @@ public async Task WriteBodyBytes(byte[] bodyData, int playbackResponseTime, Http if (i != chunks.Length - 1) { - Thread.Sleep(sleepLength); + await Task.Delay(sleepLength); } }