@@ -1692,7 +1692,7 @@ var _ = Describe("machine-update", Ordered, Label("machine", "machine-update"),
1692
1692
Status : linodego .InstanceRunning ,
1693
1693
Updated : util .Pointer (time .Now ()),
1694
1694
}, nil )
1695
- mck .LinodeClient .EXPECT ().UpdateInstance (ctx , 11111 , linodego. InstanceUpdateOptions { Tags : & [] string { "test-tag" , "test-cluster-2" }} ).Return (
1695
+ mck .LinodeClient .EXPECT ().UpdateInstance (ctx , 11111 , gomock . Any () ).Return (
1696
1696
& linodego.Instance {
1697
1697
ID : 11111 ,
1698
1698
IPv4 : []* net.IP {ptr .To (net .IPv4 (192 , 168 , 0 , 2 ))},
@@ -1799,15 +1799,14 @@ var _ = Describe("machine-delete", Ordered, Label("machine", "machine-delete"),
1799
1799
linodeMachine .Spec .ProviderID = tmpProviderID
1800
1800
1801
1801
})),
1802
- /* TODO: fix this flaking test
1803
- Path(Result("delete requeues", func(ctx context.Context, mck Mock) {
1802
+ Path (Result ("delete requeues" , func (ctx context.Context , mck Mock ) {
1804
1803
mck .LinodeClient .EXPECT ().DeleteInstance (gomock .Any (), gomock .Any ()).
1805
- Return(&linodego.Error{Code: http.StatusInternalServerError })
1804
+ Return (& linodego.Error {Code : http .StatusBadGateway })
1806
1805
res , err := reconciler .reconcileDelete (ctx , mck .Logger (), mScope )
1807
1806
Expect (err ).NotTo (HaveOccurred ())
1808
1807
Expect (res .RequeueAfter ).To (Equal (rutil .DefaultMachineControllerRetryDelay ))
1809
1808
Expect (mck .Logs ()).To (ContainSubstring ("re-queuing Linode instance deletion" ))
1810
- })), */
1809
+ })),
1811
1810
),
1812
1811
),
1813
1812
Path (
0 commit comments