Skip to content

Commit

Permalink
Merge pull request #529 from DataDog/jared.ledvina/fixup-service-test
Browse files Browse the repository at this point in the history
[Cherry-pick] Fixup: service_test.go
  • Loading branch information
jaredledvina authored Oct 3, 2023
2 parents 1fee581 + 7054498 commit a7f2108
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ var (
backends4 = []*lb.Backend{
lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.4"), 8080),
}
backends5 = []lb.Backend{
*lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.5"), 8080),
*lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.6"), 8080),
backends5 = []*lb.Backend{
lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.5"), 8080),
lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.6"), 8080),
}
backends6 = []lb.Backend{
*lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.7"), 8080),
backends6 = []*lb.Backend{
lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.7"), 8080),
}
)

Expand Down Expand Up @@ -523,7 +523,7 @@ func (m *ManagerTestSuite) TestHealthCheckNodePort(c *C) {
localBackend1.NodeName = nodeTypes.GetName()
localBackend2.NodeName = nodeTypes.GetName()
localTerminatingBackend3.NodeName = nodeTypes.GetName()
localActiveBackends := []lb.Backend{localBackend1, localBackend2}
localActiveBackends := []*lb.Backend{localBackend1, localBackend2}

// Create three remote backends
remoteBackend1 := lb.NewBackend(0, lb.TCP, net.ParseIP("10.0.0.3"), 8080)
Expand Down Expand Up @@ -831,8 +831,8 @@ func (m *ManagerTestSuite) TestLocalRedirectServiceOverride(c *C) {
// Tests whether backends with TerminatingState as initial state are properly
// considered as Terminating backends
func (m *ManagerTestSuite) TestTerminatingStateAsInitialState(c *C) {
terminatingBackends := []lb.Backend{
*lb.NewBackendWithState(0, lb.TCP, net.ParseIP("10.0.0.10"), 8080,
terminatingBackends := []*lb.Backend{
lb.NewBackendWithState(0, lb.TCP, net.ParseIP("10.0.0.10"), 8080,
lb.BackendStateTerminating, false),
}

Expand Down

0 comments on commit a7f2108

Please sign in to comment.