Skip to content

Commit a84717e

Browse files
committed
1 parent 07ba912 commit a84717e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

controllers/srlinux_controller_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ func TestSrlinuxReconcile(t *testing.T) {
8181

8282
for _, tc := range testsCases {
8383
t.Run(tc.descr, func(t *testing.T) {
84-
fakeClient := fake.NewClientBuilder().WithRuntimeObjects(tc.clientObjs...).Build()
84+
fakeClient := fake.NewClientBuilder().
85+
WithRuntimeObjects(tc.clientObjs...).
86+
WithStatusSubresource(&srlinuxv1.Srlinux{}).
87+
Build()
8588

8689
g := NewWithT(t)
8790
reconciler := SrlinuxReconciler{

0 commit comments

Comments
 (0)