Skip to content

Commit 2f41a8a

Browse files
committed
Fix tests
1 parent 2872ed6 commit 2f41a8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/executor/executor_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ func TestInteractive(t *testing.T) {
528528
w := bytes.Buffer{}
529529

530530
err := executor.Interactive(&r, &w, &config.Session{Address: serverRCON.Addr(), Password: "password"})
531-
assert.EqualError(t, err, "command too long")
531+
assert.EqualError(t, err, "execute: command too long")
532532
})
533533

534534
// Test get Interactive commands RCON.
@@ -649,7 +649,7 @@ func TestNewExecutor(t *testing.T) {
649649
args = append(args, "help")
650650

651651
err := app.Run(args)
652-
assert.EqualError(t, err, "address is not set: to set address add -a host:port")
652+
assert.EqualError(t, err, "cli: address is not set: to set address add -a host:port")
653653
})
654654

655655
// Test empty password. Log is not used.
@@ -676,7 +676,7 @@ func TestNewExecutor(t *testing.T) {
676676
args = append(args, "help")
677677

678678
err := app.Run(args)
679-
assert.EqualError(t, err, "password is not set: to set password add -p password")
679+
assert.EqualError(t, err, "cli: password is not set: to set password add -p password")
680680
})
681681

682682
// Positive test Interactive. Log is not used.

0 commit comments

Comments
 (0)