You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_timer.rb
    path of file: ./repos/polyphony/test
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative 'helper'

class TimerMoveOnAfterTest < MiniTest::Test
  def setup
    super
    @timer = Polyphony::Timer.new(resolution: 0.01)
  end

  def teardown
    @timer.stop
    super
  end

  def tes
    
  def test_timer_cancel_after_with_reset
    buf = []
    @timer.cancel_after(0.15) do
      sleep 0.05
      buf << 1
      @timer.reset
      sleep 0.05
      buf << 2
      @timer.reset
      sleep 0.05
      buf << 3
      @timer.reset
      sleep 0.05
      buf << 4
    end
    assert_equal [1, 2, 3, 4], buf
  end