Skip to content

Commit 2538d3a

Browse files
ymLKaemmerling
authored andcommitted
Fix tests for ChangeDNSPtr
1 parent 281a314 commit 2538d3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/hcops/load_balancer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ func TestLoadBalancerOps_ReconcileHCLB(t *testing.T) {
772772
mock: func(t *testing.T, tt *LBReconcilementTestCase) {
773773
action := &hcloud.Action{ID: rand.Int()}
774774
newRDNS := "new-name-lb.example.com"
775-
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, string(net.ParseIP("1.2.3.4")), &newRDNS).Return(action, nil, nil)
775+
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, net.ParseIP("1.2.3.4").String(), &newRDNS).Return(action, nil, nil)
776776
tt.fx.MockWatchProgress(action, nil)
777777
},
778778
perform: func(t *testing.T, tt *LBReconcilementTestCase) {
@@ -819,7 +819,7 @@ func TestLoadBalancerOps_ReconcileHCLB(t *testing.T) {
819819
mock: func(t *testing.T, tt *LBReconcilementTestCase) {
820820
action := &hcloud.Action{ID: rand.Int()}
821821
newRDNS := "new-name-lb.example.com"
822-
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, string(net.ParseIP("fe80::1")), &newRDNS).Return(action, nil, nil)
822+
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, net.ParseIP("fe80::1").String(), &newRDNS).Return(action, nil, nil)
823823
tt.fx.MockWatchProgress(action, nil)
824824
},
825825
perform: func(t *testing.T, tt *LBReconcilementTestCase) {

0 commit comments

Comments
 (0)