From 0c51b05cf9e1693d7672306b29b9eb150ef11aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?McCoy=20Pati=C3=B1o?= <39780829+mccoyp@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:45:31 -0800 Subject: [PATCH] [Test Proxy] Always return dictionary from tests (#22799) --- tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py b/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py index c83dcc0833a9..1c48a7e46d33 100644 --- a/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py +++ b/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py @@ -138,7 +138,7 @@ def stop_record_or_playback(test_id, recording_id, test_output): "x-recording-save": "true", "Content-Type": "application/json" }, - json=test_output + json=test_output or {} # tests don't record successfully unless test_output is a dictionary ) else: requests.post(