hyperstack-org / hyperstack-org/hyperstack

Hyperspec Timecop is a buggy

未关闭
#386 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
JavaScript
星标
538
派生
41
PR 合并指标
30 天内没有已合并 PR

描述

Timecop.freeze
...
Timecop.travel(Time.now+30.seconds). # time moves a few seconds on the display then freezes
...
Timecop.travel(Time.now+1.minute) # time now moves 30 seconds
...
another scenario
# time is running normally
Timecop.travel(Time.now+30.seconds)
Timecop.freeze. # time does not update.

It seems that the multiple commands coming from the server are confusing things.

This seems to work sort of okay:
Timecop.travel(TIme.now+30.seconds)
sleep 1
Timecop.freeze

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。