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

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/api/agent/machine_test.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                APIPort:      ssi.APIPort,
54
54
                StatePort:    ssi.StatePort,
55
55
        }
56
 
        s.State.SetStateServingInfo(ssi)
 
56
        err := s.State.SetStateServingInfo(ssi)
 
57
        c.Assert(err, jc.ErrorIsNil)
57
58
        info, err := apiagent.NewState(st).StateServingInfo()
58
59
        c.Assert(err, jc.ErrorIsNil)
59
60
        c.Assert(info, jc.DeepEquals, expected)