~ubuntu-branches/ubuntu/saucy/juju-core/saucy-updates

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/cmd/jujud/agent_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-09-03 14:22:22 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130903142222-9mes2r8wqr0bs7lp
Tags: 1.13.3-0ubuntu1
New upstream point release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
 
108
108
// agentSuite is a fixture to be used by agent test suites.
109
109
type agentSuite struct {
 
110
        oldRestartDelay time.Duration
110
111
        testing.JujuConnSuite
111
112
}
112
113
 
 
114
func (s *agentSuite) SetUpSuite(c *gc.C) {
 
115
        s.oldRestartDelay = worker.RestartDelay
 
116
        worker.RestartDelay = coretesting.ShortWait
 
117
        s.JujuConnSuite.SetUpSuite(c)
 
118
}
 
119
 
 
120
func (s *agentSuite) TearDownSuite(c *gc.C) {
 
121
        s.JujuConnSuite.TearDownSuite(c)
 
122
        worker.RestartDelay = s.oldRestartDelay
 
123
}
 
124
 
113
125
// primeAgent writes the configuration file and tools for an agent with the
114
126
// given entity name.  It returns the agent's configuration and the current
115
127
// tools.