~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to testing/constants.go

  • Committer: William Reade
  • Date: 2012-01-20 21:32:53 UTC
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: fwereade@gmail.com-20120120213253-csks5e12opl8t1rq
hefty rearrangement, few actual changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2012, 2013 Canonical Ltd.
2
 
// Licensed under the AGPLv3, see LICENCE file for details.
3
 
 
4
 
package testing
5
 
 
6
 
import (
7
 
        "time"
8
 
)
9
 
 
10
 
// ShortWait is a reasonable amount of time to block waiting for something that
11
 
// shouldn't actually happen. (as in, the test suite will *actually* wait this
12
 
// long before continuing)
13
 
const ShortWait = 50 * time.Millisecond
14
 
 
15
 
// LongWait is used when something should have already happened, or happens
16
 
// quickly, but we want to make sure we just haven't missed it. As in, the test
17
 
// suite should proceed without sleeping at all, but just in case. It is long
18
 
// so that we don't have spurious failures without actually slowing down the
19
 
// test suite
20
 
const LongWait = 500 * time.Millisecond