Skip to content

Commit e6e2879

Browse files
committed
fix: unit test
1 parent 5f4e228 commit e6e2879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmux/list_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestProcessSessions(t *testing.T) {
3434
Input: []string{
3535
"1705879337 1 /dev/ttys000 1705878987 1 0 $2 1705879328 0 0 session-1 /some/test/path 1 1",
3636
},
37-
Expected: []*TmuxSession{},
37+
Expected: make([]*TmuxSession, 1),
3838
},
3939
"Single inactive session": {
4040
Input: []string{
@@ -54,7 +54,7 @@ func TestProcessSessions(t *testing.T) {
5454
"1705879337 1 /dev/ttys000 1705878987 1 0 $2 1705879328 0 0 session-1 /some/test/path 1 1",
5555
"1705879337 1 /dev/ttys000 1705878987 1 0 $2 1705879328 0 0 session-1 /some/test/path 1 1",
5656
},
57-
Expected: []*TmuxSession{},
57+
Expected: make([]*TmuxSession, 2),
5858
},
5959
"No sessions": {
6060
Expected: []*TmuxSession{},

0 commit comments

Comments
 (0)