Skip to content

Commit

Permalink
feat: pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Nov 6, 2023
1 parent 58c9de1 commit 1fec294
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion pkg/cy/cy-boot.janet
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,3 @@
(key/bind :replay ["!"] (fn [&] (replay/time-playback-rate -1)))
(key/bind :replay ["@"] (fn [&] (replay/time-playback-rate -2)))
(key/bind :replay ["#"] (fn [&] (replay/time-playback-rate -5)))
(pp actions)
2 changes: 1 addition & 1 deletion pkg/cy/cy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestPaneKill(t *testing.T) {
(pane/attach shell)
(tree/kill shell)
`))
time.Sleep(1 * time.Second) // lol
time.Sleep(2 * time.Second) // lol
leaves := server.cy.tree.Leaves()
require.Equal(t, leaves[0].Id(), client.Node().Id())
}
8 changes: 4 additions & 4 deletions pkg/mux/screen/replay/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ func TestTime(t *testing.T) {
i(size)
r.gotoIndex(0, -1)
require.Equal(t, e[0].Stamp, r.currentTime)
r.setTimeDelta(delta)
r.setTimeDelta(delta, true)
require.Equal(t, 1, r.location.Index)
r.setTimeDelta(delta)
r.setTimeDelta(delta, true)
require.Equal(t, 2, r.location.Index)
require.Equal(t, e[2].Stamp, r.currentTime)
r.setTimeDelta(-delta)
r.setTimeDelta(-delta, true)
require.Equal(t, 1, r.location.Index)
r.setTimeDelta(-delta)
r.setTimeDelta(-delta, true)
require.Equal(t, 0, r.location.Index)
}

Expand Down

0 comments on commit 1fec294

Please sign in to comment.