Skip to content

Commit

Permalink
Fix tests for ChangeDNSPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
ym committed Sep 20, 2022
1 parent 4cc653e commit 190d02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/hcops/load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ func TestLoadBalancerOps_ReconcileHCLB(t *testing.T) {
mock: func(t *testing.T, tt *LBReconcilementTestCase) {
action := &hcloud.Action{ID: rand.Int()}
newRDNS := "new-name-lb.example.com"
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, string(net.ParseIP("1.2.3.4")), &newRDNS).Return(action, nil, nil)
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, net.ParseIP("1.2.3.4").String(), &newRDNS).Return(action, nil, nil)
tt.fx.MockWatchProgress(action, nil)
},
perform: func(t *testing.T, tt *LBReconcilementTestCase) {
Expand Down Expand Up @@ -819,7 +819,7 @@ func TestLoadBalancerOps_ReconcileHCLB(t *testing.T) {
mock: func(t *testing.T, tt *LBReconcilementTestCase) {
action := &hcloud.Action{ID: rand.Int()}
newRDNS := "new-name-lb.example.com"
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, string(net.ParseIP("fe80::1")), &newRDNS).Return(action, nil, nil)
tt.fx.LBClient.On("ChangeDNSPtr", tt.fx.Ctx, tt.initialLB, net.ParseIP("fe80::1").String(), &newRDNS).Return(action, nil, nil)
tt.fx.MockWatchProgress(action, nil)
},
perform: func(t *testing.T, tt *LBReconcilementTestCase) {
Expand Down

0 comments on commit 190d02c

Please sign in to comment.