~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to worker/addressupdater/machine_test.go

[r=rogpeppe] worker/addressupdater: wire up

It could do with some more comprehensive
testing, but it might be OK to land anyway.

https://codereview.appspot.com/14306043/

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2013 Canonical Ltd.
 
2
// Licensed under the AGPLv3, see LICENCE file for details.
 
3
 
1
4
package addressupdater
2
5
 
3
6
import (
235
238
type testMachine struct {
236
239
        instanceId      instance.Id
237
240
        instanceIdErr   error
238
 
        jobs            []state.MachineJob
239
241
        id              string
240
242
        refresh         func() error
241
243
        setAddressesErr error
274
276
        return nil
275
277
}
276
278
 
277
 
func (m *testMachine) Jobs() []state.MachineJob {
278
 
        return m.jobs
279
 
}
280
 
 
281
279
func (m *testMachine) String() string {
282
280
        return m.id
283
281
}