Skip to content

Commit c2dc2eb

Browse files
update unstrustured
Co-authored-by: Christian Schlotter <[email protected]>
1 parent dff0573 commit c2dc2eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/controllers/machine/machine_controller_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,11 +2821,11 @@ func TestIsDeleteNodeAllowed(t *testing.T) {
28212821
},
28222822
Status: clusterv1.MachineStatus{},
28232823
},
2824-
infraMachine: &InfrastructureMachine{
2825-
Spec: InfrastructureMachineSpec{
2826-
ProviderID: ptr.To("test-node-a"),
2824+
infraMachine: &unstructured.Unstructured{Object: map[string]interface{}{
2825+
"spec": map[string]interface{}{
2826+
"providerID": "test-node-a",
28272827
},
2828-
},
2828+
}},
28292829
expectedError: nil,
28302830
},
28312831
}

0 commit comments

Comments
 (0)