From 61a32941770f65302ab15ae4742f5aaf8f6cc70d Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Thu, 1 Aug 2024 15:24:38 +0200 Subject: [PATCH] test: Delete apparently-unnecessary test This test does not appear to test any important functionality. Rather, it is primarily asserting that specific messages are logged. Let's remove it so we do not need to update the test if we ever change what these logs state. --- .../send_metric/send_metric-global-options.trycmd | 14 -------------- tests/integration/send_metric/mod.rs | 5 ----- 2 files changed, 19 deletions(-) delete mode 100644 tests/integration/_cases/send_metric/send_metric-global-options.trycmd diff --git a/tests/integration/_cases/send_metric/send_metric-global-options.trycmd b/tests/integration/_cases/send_metric/send_metric-global-options.trycmd deleted file mode 100644 index 2ebd6e00b1..0000000000 --- a/tests/integration/_cases/send_metric/send_metric-global-options.trycmd +++ /dev/null @@ -1,14 +0,0 @@ -``` -$ sentry-cli send-metric --header a:b --auth-token "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" --allow-failure --quiet --log-level debug -? failed - INFO [..] Loaded config from [CWD]/.sentryclirc - DEBUG [..] sentry-cli version: [VERSION], platform: [..], architecture: [..] - INFO [..] sentry-cli was invoked with the following command line: "[CWD]/target/debug/sentry-cli[EXE]" "send-metric" "--header" "a:b" "--auth-token" "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" "--allow-failure" "--quiet" "--log-level" "debug" -error: 'sentry-cli[EXE] send-metric' requires a subcommand but one was not provided - [subcommands: increment, distribution, gauge, set, help] - -Usage: sentry-cli[EXE] send-metric [OPTIONS] - -For more information, try '--help'. - -``` diff --git a/tests/integration/send_metric/mod.rs b/tests/integration/send_metric/mod.rs index 7d0b24ff06..dfc2337af3 100644 --- a/tests/integration/send_metric/mod.rs +++ b/tests/integration/send_metric/mod.rs @@ -27,8 +27,3 @@ fn command_send_metric_help() { fn command_send_metric_no_subcommand() { integration::register_test("send_metric/send_metric-no-subcommand.trycmd"); } - -#[test] -fn command_send_metric_global_options() { - integration::register_test("send_metric/send_metric-global-options.trycmd"); -}