fix: 修复关闭SSH终端标签页时会话状态未更新的问题

This commit is contained in:
2026-04-18 02:35:38 +08:00
commit 6e2e2f9387
43467 changed files with 5489040 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package utils
import "testing"
func TestExec(t *testing.T) {
commands := []string{
`pwd`,
`whoami`,
`cat /etc/resolv.conf`,
`echo "test" > /tmp/ddtest`,
`rm -rf /tmp/ddtest`,
}
for _, command := range commands {
output, errout, err := Exec(command)
if err != nil {
t.Fatal(err)
}
t.Log("output:", output)
t.Log("errout:", errout)
}
}