Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Feb 22, 2021
1 parent 2872ed6 commit 2f41a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ func TestInteractive(t *testing.T) {
w := bytes.Buffer{}

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

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

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

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

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

// Positive test Interactive. Log is not used.
Expand Down

0 comments on commit 2f41a8a

Please sign in to comment.