diff --git a/Tests/Utils.cs b/Tests/Utils.cs index 9457bc39..673a7f51 100644 --- a/Tests/Utils.cs +++ b/Tests/Utils.cs @@ -220,10 +220,10 @@ public static async Task HttpKillConnections(string connectionName) * https://stackoverflow.com/a/4550600 */ var s = Uri.EscapeDataString(conn.name); - var r = await client.DeleteAsync($"http://localhost:15672/api/connections/{s}"); - if (!r.IsSuccessStatusCode) + var deleteResult = await client.DeleteAsync($"http://localhost:15672/api/connections/{s}"); + if (!deleteResult.IsSuccessStatusCode) { - throw new XunitException($"HTTP DELETE failed: {result.StatusCode} {result.ReasonPhrase}"); + throw new XunitException($"HTTP DELETE failed: {deleteResult.StatusCode} {deleteResult.ReasonPhrase}"); } killed += 1;