Skip to content

Commit ff79cee

Browse files
committed
test: enable insecure cipher suites for test compatibility
- Enable insecure ciphers in test configuration for compatibility Signed-off-by: appleboy <[email protected]>
1 parent 412193b commit ff79cee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugin_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,9 @@ func TestSudoCommand(t *testing.T) {
981981
Script: []string{
982982
`sudo su - -c "whoami"`,
983983
},
984-
CommandTimeout: 10 * time.Second,
985-
RequireTty: true,
984+
CommandTimeout: 10 * time.Second,
985+
RequireTty: true,
986+
UseInsecureCipher: true, // Allow insecure ciphers for compatibility
986987
},
987988
Writer: &buffer,
988989
}

0 commit comments

Comments
 (0)