Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Dec 6, 2024
1 parent 2df67ce commit ded1028
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easyssh_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package easyssh

import (
"context"
"os"
"os/user"
"path"
Expand Down Expand Up @@ -508,5 +509,6 @@ func TestCommandTimeout(t *testing.T) {
assert.Equal(t, "root\n", outStr)
assert.Equal(t, "", errStr)
assert.False(t, isTimeout)
assert.NoError(t, err)
assert.NotNil(t, err)
assert.Equal(t, "Run Command Timeout: "+context.DeadlineExceeded.Error(), err.Error())
}

0 comments on commit ded1028

Please sign in to comment.