From 0cea500eef60dc6b32523247a27e412406885f00 Mon Sep 17 00:00:00 2001 From: Mohamed Daahir Date: Sun, 7 May 2023 13:10:25 +0100 Subject: [PATCH] update failing tests --- tests/cli.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/cli.rs b/tests/cli.rs index 77df5719..f4d9f2cb 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -2063,7 +2063,7 @@ fn named_sessions() { "cook1": { "value": "one", "path": "/" }, "lang": { "value": "en" } }, - "headers": {} + "headers": [] }) ); } @@ -2102,7 +2102,7 @@ fn anonymous_sessions() { }, "auth": { "type": "basic", "raw_auth": "me:pass" }, "cookies": { "cook1": { "value": "one" } }, - "headers": { "hello": "world" } + "headers": [ {"key": "hello", "value": "world"} ] }) ); } @@ -2181,9 +2181,9 @@ fn session_files_are_created_in_read_only_mode() { "cookies": { "lang": { "value": "ar" } }, - "headers": { - "hello": "world" - } + "headers": [ + {"key": "hello", "value": "world"} + ] }) ); } @@ -2299,7 +2299,7 @@ fn expired_cookies_are_removed_from_session() { "value": "random_string", } }, - "headers": {} + "headers": [] }) ); } @@ -2366,7 +2366,7 @@ fn cookies_override_each_other_in_the_correct_order() { "cook1": { "value": "one" }, "cook2": { "value": "two" } }, - "headers": {} + "headers": [] }) ); } @@ -2475,9 +2475,9 @@ fn auth_netrc_is_not_persisted_in_session() { }, "auth": { "type": null, "raw_auth": null }, "cookies": {}, - "headers": { - "hello": "world" - } + "headers": [ + {"key": "hello", "value": "world"} + ] }) ); }