Skip to content

Commit

Permalink
fix: spelling for newRelationStateTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
manadart committed Sep 16, 2024
1 parent 4224edd commit 83a2c77
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions worker/uniter/relation/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func assertNumCalls(c *gc.C, numCalls *int32, expected int32) {
c.Assert(v, gc.Equals, expected)
}

func (s *relationResolverSuite) newRelationStateTracer(c *gc.C, apiCaller base.APICaller, unitTag names.UnitTag) relation.RelationStateTracker {
func (s *relationResolverSuite) newRelationStateTracker(c *gc.C, apiCaller base.APICaller, unitTag names.UnitTag) relation.RelationStateTracker {
abort := make(chan struct{})
st := uniter.NewState(apiCaller, unitTag)
u, err := st.Unit(unitTag)
Expand Down Expand Up @@ -166,7 +166,7 @@ func (s *relationResolverSuite) setupRelations(c *gc.C) relation.RelationStateTr
uniterAPICall("State", unitEntity, unitStateResults, nil),
uniterAPICall("RelationsStatus", unitEntity, params.RelationUnitStatusResults{Results: []params.RelationUnitStatusResult{{RelationResults: []params.RelationUnitStatus{}}}}, nil),
)
r := s.newRelationStateTracer(c, apiCaller, unitTag)
r := s.newRelationStateTracker(c, apiCaller, unitTag)
assertNumCalls(c, &numCalls, 4)
return r
}
Expand Down Expand Up @@ -231,7 +231,7 @@ func (s *relationResolverSuite) assertNewRelationsWithExistingRelations(c *gc.C,
)
}
apiCaller := mockAPICaller(c, &numCalls, apiCalls...)
r := s.newRelationStateTracer(c, apiCaller, unitTag)
r := s.newRelationStateTracker(c, apiCaller, unitTag)
assertNumCalls(c, &numCalls, int32(len(apiCalls)))

info := r.GetInfo()
Expand Down Expand Up @@ -268,7 +268,7 @@ func (s *relationResolverSuite) TestNextOpNothing(c *gc.C) {
uniterAPICall("State", unitEntity, unitStateResults, nil),
uniterAPICall("RelationsStatus", unitEntity, params.RelationUnitStatusResults{Results: []params.RelationUnitStatusResult{{RelationResults: []params.RelationUnitStatus{}}}}, nil),
)
r := s.newRelationStateTracer(c, apiCaller, unitTag)
r := s.newRelationStateTracker(c, apiCaller, unitTag)
assertNumCalls(c, &numCalls, 4)

localState := resolver.LocalState{
Expand Down Expand Up @@ -393,7 +393,7 @@ func (s *relationResolverSuite) assertHookRelationJoined(c *gc.C, numCalls *int3
unitTag := names.NewUnitTag("wordpress/0")

apiCaller := mockAPICaller(c, numCalls, apiCalls...)
r := s.newRelationStateTracer(c, apiCaller, unitTag)
r := s.newRelationStateTracker(c, apiCaller, unitTag)
assertNumCalls(c, numCalls, 4)

localState := resolver.LocalState{
Expand Down Expand Up @@ -839,7 +839,7 @@ func (s *relationResolverSuite) TestImplicitRelationNoHooks(c *gc.C) {

var numCalls int32
apiCaller := mockAPICaller(c, &numCalls, apiCalls...)
r := s.newRelationStateTracer(c, apiCaller, unitTag)
r := s.newRelationStateTracker(c, apiCaller, unitTag)

localState := resolver.LocalState{
State: operation.State{
Expand Down Expand Up @@ -979,7 +979,7 @@ func (s *relationResolverSuite) TestSubSubPrincipalRelationDyingDestroysUnit(c *
//apiCalls = append(apiCalls, uniterAPICall("State", nrpeUnitEntity, unitStateResults, nil))
apiCaller := mockAPICaller(c, &numCalls, apiCalls...)

r := s.newRelationStateTracer(c, apiCaller, nrpeUnitTag)
r := s.newRelationStateTracker(c, apiCaller, nrpeUnitTag)
assertNumCalls(c, &numCalls, callsBeforeDestroy)

// So now we have a relations object with two relations, one to
Expand Down Expand Up @@ -1035,7 +1035,7 @@ func (s *relationResolverSuite) TestSubSubOtherRelationDyingNotDestroyed(c *gc.C

apiCaller := mockAPICaller(c, &numCalls, apiCalls...)

r := s.newRelationStateTracer(c, apiCaller, nrpeUnitTag)
r := s.newRelationStateTracker(c, apiCaller, nrpeUnitTag)

// TODO: Fix this test...
// This test intermittently makes either 16 or 17
Expand Down Expand Up @@ -1154,7 +1154,7 @@ func (s *relationResolverSuite) TestPrincipalDyingDestroysSubordinates(c *gc.C)
//apiCalls = append(apiCalls, uniterAPICall("State", nrpeUnitEntity, unitStateResults, nil))
apiCaller := mockAPICaller(c, &numCalls, apiCalls...)

r := s.newRelationStateTracer(c, apiCaller, nrpeUnitTag)
r := s.newRelationStateTracker(c, apiCaller, nrpeUnitTag)
assertNumCalls(c, &numCalls, callsBeforeDestroy)

// So now we have a relation between a principal (wordpress) and a
Expand Down

0 comments on commit 83a2c77

Please sign in to comment.