Skip to content

Commit 128a21f

Browse files
committed
fix ut
2 parents 2e08670 + 628e380 commit 128a21f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/manager/controllers/faultinjection/faultinject_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (r *FaultInjectionReconciler) Reconcile(ctx context.Context, req ctrl.Reque
161161
}
162162
fi.Status = *status
163163
if err := r.Status().Update(ctx, fi); err != nil {
164-
klog.Errorf("fail to update circuit breaker %s status", utils.KeyFunc(fi))
164+
klog.Errorf("fail to update fault injection %s status", utils.KeyFunc(fi))
165165
reconcileErr = errors.Join(reconcileErr, err)
166166
}
167167
return ctrl.Result{}, reconcileErr

pkg/manager/controllers/faultinjection/faultinjection_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var faultInjection = &ctrlmeshv1alpha1.FaultInjection{
7979
{
8080
Delay: &ctrlmeshv1alpha1.HTTPFaultInjectionDelay{
8181
Percent: "100",
82-
FixedDelay: "20s",
82+
FixedDelay: "20ms",
8383
},
8484
Match: &ctrlmeshv1alpha1.Match{
8585
Resources: []*ctrlmeshv1alpha1.ResourceMatch{

0 commit comments

Comments
 (0)