Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmedeski committed Jan 24, 2024
1 parent 5f4e228 commit e6e2879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmux/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestProcessSessions(t *testing.T) {
Input: []string{
"1705879337 1 /dev/ttys000 1705878987 1 0 $2 1705879328 0 0 session-1 /some/test/path 1 1",
},
Expected: []*TmuxSession{},
Expected: make([]*TmuxSession, 1),
},
"Single inactive session": {
Input: []string{
Expand All @@ -54,7 +54,7 @@ func TestProcessSessions(t *testing.T) {
"1705879337 1 /dev/ttys000 1705878987 1 0 $2 1705879328 0 0 session-1 /some/test/path 1 1",
"1705879337 1 /dev/ttys000 1705878987 1 0 $2 1705879328 0 0 session-1 /some/test/path 1 1",
},
Expected: []*TmuxSession{},
Expected: make([]*TmuxSession, 2),
},
"No sessions": {
Expected: []*TmuxSession{},
Expand Down

0 comments on commit e6e2879

Please sign in to comment.