title: How to get time.Tick to tick immediately
body: <p>I have a loop that iterates until a job is up and running:</p>
  
  <pre><code>ticker := time.NewTicker(time.Second * 2)
  defer ticker.Stop()
  
  started := time.Now()
  for now := range ticker.C {
      job, err := client.Job(jobID)
      switch err.(type) {
      case DoesNotExistError:
          continue
      case InternalError:
          return err
      }
  
      if job.State == "running" {
          break
      }
  
      if now.Sub(started) &gt; time.Minute*2 {
          return fmt.Errorf("timed out waiting for job")
      }
  }
  </code></pre>
  
  <p>Works great in production.  The only problem is that it makes my tests slow.  They all wait at least 2 seconds before completing.  Is there anyway to get <code>time.Tick</code> to tick immediately?</p>