summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-02-19 12:39:04 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-02-19 12:39:04 +0900
commitca747a2b5465961b23aa09606412877dd482a874 (patch)
treea8c7668a755a34cca63d3971a73fd9fa6d1cab6d
parent17da165cfe4e9b02cc42a34f544e3b32d2ece722 (diff)
Fix unit tests
-rw-r--r--src/reader_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader_test.go b/src/reader_test.go
index 8a138da7..bf06fd09 100644
--- a/src/reader_test.go
+++ b/src/reader_test.go
@@ -22,7 +22,7 @@ func TestReadFromCommand(t *testing.T) {
}
// Normal command
- reader.fin(reader.readFromCommand(`echo abc&&echo def`))
+ reader.fin(reader.readFromCommand(`echo abc&&echo def`, nil))
if len(strs) != 2 || strs[0] != "abc" || strs[1] != "def" {
t.Errorf("%s", strs)
}
@@ -47,7 +47,7 @@ func TestReadFromCommand(t *testing.T) {
reader.startEventPoller()
// Failing command
- reader.fin(reader.readFromCommand(`no-such-command`))
+ reader.fin(reader.readFromCommand(`no-such-command`, nil))
strs = []string{}
if len(strs) > 0 {
t.Errorf("%s", strs)