Skip to content

Commit

Permalink
request_test: improve Dispatch test so they quit Kitty automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 23, 2024
1 parent 0ab80ac commit 34a75f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ func TestCursorPos(t *testing.T) {

func TestDispatch(t *testing.T) {
testCommandRR(t, func() (RawResponse, error) {
return c.Dispatch("exec kitty")
return c.Dispatch("exec kitty sh -c 'echo Testing hyprland-go && sleep 1 && exit 0'")
})

if testing.Short() {
t.Skip("skip slow test")
}
testCommandRR(t, func() (RawResponse, error) {
return c.Dispatch(genParams("exec kitty", 40)...)
return c.Dispatch(genParams("exec kitty sh -c 'exit 0'", 40)...)
})
}

Expand Down Expand Up @@ -200,7 +200,7 @@ func TestKeyword(t *testing.T) {

func TestKill(t *testing.T) {
if testing.Short() {
t.Skip("skip test that kill windows")
t.Skip("skip test that kill window")
}
testCommandRR(t, c.Kill)
}
Expand Down

0 comments on commit 34a75f0

Please sign in to comment.