Skip to content

Commit

Permalink
cmd/jujud/agent: Registers components in tests
Browse files Browse the repository at this point in the history
Required to support migrationmaster worker.
  • Loading branch information
Menno Smits committed Dec 14, 2016
1 parent fa488a7 commit f96940f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/jujud/agent/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ package agent // not agent_test for no good reason
import (
stdtesting "testing"

"github.com/juju/juju/component/all"
coretesting "github.com/juju/juju/testing"
)

func init() {
// Required for resources support.
if err := all.RegisterForServer(); err != nil {
panic(err)
}
}

func TestPackage(t *stdtesting.T) {
// TODO(waigani) 2014-03-19 bug 1294458
// Refactor to use base suites
Expand Down

0 comments on commit f96940f

Please sign in to comment.