From ce7d47c250c16c41a842862f8899226aace30ee1 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 14 Jul 2024 15:02:35 +0800 Subject: [PATCH] test: refactor codebase to improve performance and readability - Remove debug command block from `TestSudoCommand` test Signed-off-by: Bo-Yi Wu --- plugin_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index 549a39d..49a25e3 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -918,9 +918,6 @@ func TestSudoCommand(t *testing.T) { var ( buffer bytes.Buffer expected = ` - ======CMD====== - sudo su - -c "whoami" - ======END====== out: root ` ) @@ -936,7 +933,6 @@ func TestSudoCommand(t *testing.T) { }, CommandTimeout: 10 * time.Second, RequireTty: true, - Debug: true, }, Writer: &buffer, }