@@ -1609,31 +1609,6 @@ func TestLoadBalancerOps_ReconcileHCLBServices(t *testing.T) {
16091609 MaxTargets : 25 ,
16101610 },
16111611 },
1612- mock : func (_ * testing.T , tt * LBReconcilementTestCase ) {
1613- opts := hcloud.LoadBalancerAddServiceOpts {
1614- Protocol : hcloud .LoadBalancerServiceProtocolTCP ,
1615- ListenPort : hcloud .Ptr (80 ),
1616- DestinationPort : hcloud .Ptr (8080 ),
1617- HealthCheck : & hcloud.LoadBalancerAddServiceOptsHealthCheck {
1618- Protocol : hcloud .LoadBalancerServiceProtocolTCP ,
1619- Port : hcloud .Ptr (8080 ),
1620- },
1621- }
1622- action := tt .fx .MockAddService (opts , tt .initialLB , nil )
1623- tt .fx .ActionClient .On ("WaitFor" , tt .fx .Ctx , action ).Return (nil )
1624-
1625- opts = hcloud.LoadBalancerAddServiceOpts {
1626- Protocol : hcloud .LoadBalancerServiceProtocolTCP ,
1627- ListenPort : hcloud .Ptr (443 ),
1628- DestinationPort : hcloud .Ptr (8443 ),
1629- HealthCheck : & hcloud.LoadBalancerAddServiceOptsHealthCheck {
1630- Protocol : hcloud .LoadBalancerServiceProtocolTCP ,
1631- Port : hcloud .Ptr (8443 ),
1632- },
1633- }
1634- action = tt .fx .MockAddService (opts , tt .initialLB , nil )
1635- tt .fx .ActionClient .On ("WaitFor" , tt .fx .Ctx , action ).Return (nil )
1636- },
16371612 perform : func (t * testing.T , tt * LBReconcilementTestCase ) {
16381613 _ , err := tt .fx .LBOps .ReconcileHCLBServices (tt .fx .Ctx , tt .initialLB , tt .service )
16391614 assert .NoError (t , err )
0 commit comments