Skip to content

Commit

Permalink
Fix command tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vbatoufflet committed Jan 14, 2018
1 parent 532456d commit f027b94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func Test_Command(t *testing.T) {
expected := fmt.Sprintf("COMMAND [%d] command1\n", time.Now().Unix())
expected := fmt.Sprintf("COMMAND [%d] command1\n\n", time.Now().Unix())

c := NewCommand("command1")

Expand All @@ -19,7 +19,7 @@ func Test_Command(t *testing.T) {
}

func Test_CommandWithInlineArgs(t *testing.T) {
expected := fmt.Sprintf("COMMAND [%d] command1;arg1;arg2\n", time.Now().Unix())
expected := fmt.Sprintf("COMMAND [%d] command1;arg1;arg2\n\n", time.Now().Unix())

c := NewCommand("command1", "arg1", "arg2")

Expand All @@ -31,7 +31,7 @@ func Test_CommandWithInlineArgs(t *testing.T) {
}

func Test_CommandWithArgs(t *testing.T) {
expected := fmt.Sprintf("COMMAND [%d] command1;arg1;arg2\n", time.Now().Unix())
expected := fmt.Sprintf("COMMAND [%d] command1;arg1;arg2\n\n", time.Now().Unix())

c := NewCommand("command1")
c.Arg("arg1")
Expand Down

0 comments on commit f027b94

Please sign in to comment.