~rogpeppe/juju-core/504-errgo-cause

« back to all changes in this revision

Viewing changes to state/multiwatcher/multiwatcher_internal_test.go

  • Committer: Roger Peppe
  • Date: 2014-02-19 08:42:03 UTC
  • Revision ID: roger.peppe@canonical.com-20140219084203-fmuln7ww71ih7nzx
state/multiwatcher: fix imports

Show diffs side-by-side

added added

removed removed

Lines of Context:
671
671
        // has seen the initial state.
672
672
        checkNext(c, w, []params.Delta{{Entity: &MachineInfo{Id: "0"}}}, "")
673
673
        c.Logf("setting fetch error")
674
 
        b.setFetchError(errors.New("some error"))
 
674
        b.setFetchError(stderrors.New("some error"))
675
675
        c.Logf("updating entity")
676
676
        b.updateEntity(&MachineInfo{Id: "1"})
677
677
        checkNext(c, w, nil, "some error")
698
698
        c.Assert(a.latestRevno, gc.Equals, latestRevno)
699
699
}
700
700
 
701
 
var errTimeout = errors.New("no change received in sufficient time")
 
701
var errTimeout = stderrors.New("no change received in sufficient time")
702
702
 
703
703
func getNext(c *gc.C, w *Watcher, timeout time.Duration) ([]params.Delta, error) {
704
704
        var deltas []params.Delta