From adfccb90a58661c2ec7228f303fcc826ed86ba93 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 8 Oct 2021 17:36:16 +0200 Subject: [PATCH] minor fixes --- test/mitmproxy/tools/console/test_integration.py | 5 ++++- web/src/js/ducks/_options_gen.ts | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/mitmproxy/tools/console/test_integration.py b/test/mitmproxy/tools/console/test_integration.py index 4bc1c0000..ed80bad2f 100644 --- a/test/mitmproxy/tools/console/test_integration.py +++ b/test/mitmproxy/tools/console/test_integration.py @@ -39,15 +39,18 @@ def console(monkeypatch): return m +@pytest.mark.asyncio def test_integration(tdata, console): console.type(f":view.flows.load {tdata.path('mitmproxy/data/dumpfile-7.mitm')}") console.type("") console.type("") # view second flow +@pytest.mark.asyncio def test_options_home_end(console): console.type("O") +@pytest.mark.asyncio def test_keybindings_home_end(console): - console.type("K") \ No newline at end of file + console.type("K") diff --git a/web/src/js/ducks/_options_gen.ts b/web/src/js/ducks/_options_gen.ts index a8bf9fce7..f077cafc7 100644 --- a/web/src/js/ducks/_options_gen.ts +++ b/web/src/js/ducks/_options_gen.ts @@ -14,6 +14,7 @@ export interface OptionsState { ciphers_server: string | undefined client_certs: string | undefined client_replay: string[] + client_replay_concurrency: number command_history: boolean confdir: string connection_strategy: string @@ -99,6 +100,7 @@ export const defaultState: OptionsState = { ciphers_server: undefined, client_certs: undefined, client_replay: [], + client_replay_concurrency: 1, command_history: true, confdir: "~/.mitmproxy", connection_strategy: "eager",