~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/state/singular_test.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
var _ = gc.Suite(&SingularSuite{})
24
24
 
25
 
func (s *SingularSuite) SetUpTest(c *gc.C) {
26
 
        s.clock = coretesting.NewClock(time.Now())
 
25
func (s *SingularSuite) SetUpSuite(c *gc.C) {
 
26
        s.ConnSuite.SetUpSuite(c)
27
27
        s.PatchValue(&state.GetClock, func() clock.Clock {
28
28
                return s.clock
29
29
        })
 
30
}
 
31
 
 
32
func (s *SingularSuite) SetUpTest(c *gc.C) {
 
33
        s.clock = coretesting.NewClock(time.Now())
30
34
        s.ConnSuite.SetUpTest(c)
31
35
}
32
36