From ff79cee470c85b6af52175788affe8dc00b871be Mon Sep 17 00:00:00 2001 From: appleboy Date: Sun, 27 Apr 2025 09:10:09 +0800 Subject: [PATCH] test: enable insecure cipher suites for test compatibility - Enable insecure ciphers in test configuration for compatibility Signed-off-by: appleboy --- plugin_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index 5ecfbb3..6cad782 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -981,8 +981,9 @@ func TestSudoCommand(t *testing.T) { Script: []string{ `sudo su - -c "whoami"`, }, - CommandTimeout: 10 * time.Second, - RequireTty: true, + CommandTimeout: 10 * time.Second, + RequireTty: true, + UseInsecureCipher: true, // Allow insecure ciphers for compatibility }, Writer: &buffer, }