USING: alarms alarms.private kernel calendar sequences tools.test threads concurrency.count-downs ; IN: alarms.tests [ ] [ 1 { f } clone 2dup [ first cancel-alarm count-down ] 2curry 1 seconds later swap set-first await ] unit-test [ ] [ [ [ resume ] curry instant later drop ] "test" suspend drop ] unit-test