Skip to content

Commit

Permalink
Reverted unnecessary changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiamac committed Feb 26, 2015
1 parent 280a41f commit 68b4ff9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion apiserver/common/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func (s *blockCheckerSuite) SetUpTest(c *gc.C) {
s.remove = mockBlock{t: state.RemoveBlock, m: "Mock BLOCK testing: REMOVE"}
s.change = mockBlock{t: state.ChangeBlock, m: "Mock BLOCK testing: CHANGE"}
s.blockchecker = common.NewBlockChecker(s)
s.AddCleanup(func(*gc.C) { s.BlockHelper.Close() })
}

func (mock *blockCheckerSuite) GetBlockForType(t state.BlockType) (state.Block, bool, error) {
Expand Down
7 changes: 7 additions & 0 deletions juju/testing/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,3 +590,10 @@ func (s *JujuConnSuite) AgentConfigForTag(c *gc.C, tag names.Tag) agent.ConfigSe
c.Assert(err, jc.ErrorIsNil)
return config
}

// AssertConfigParameterUpdated updates environment parameter and
// asserts that no errors were encountered
func (s *JujuConnSuite) AssertConfigParameterUpdated(c *gc.C, key string, value interface{}) {
err := s.BackingState.UpdateEnvironConfig(map[string]interface{}{key: value}, nil, nil)
c.Assert(err, jc.ErrorIsNil)
}

0 comments on commit 68b4ff9

Please sign in to comment.