~rogpeppe/juju-core/510-errorf-errgo

« back to all changes in this revision

Viewing changes to testing/locking_test.go

  • Committer: Roger Peppe
  • Date: 2014-03-03 12:35:05 UTC
  • Revision ID: roger.peppe@canonical.com-20140303123505-myzkq8hth2hwek8n
Error DeepEquals fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        function := func() {}
30
30
        c.Check(
31
31
                func() { TestLockingFunction(&lock, function) },
32
 
                gc.Panics, errors.New("function did not obey lock"))
 
32
                gc.PanicMatches, "function did not obey lock")
33
33
}
34
34
 
35
35
func (LockingSuite) TestTestLockingFunctionDetectsFailureToReleaseLock(c *gc.C) {
40
40
        }
41
41
        c.Check(
42
42
                func() { TestLockingFunction(&lock, function) },
43
 
                gc.Panics, errors.New("function did not release lock"))
 
43
                gc.PanicMatches, "function did not release lock")
44
44
}