@@ -201,10 +201,12 @@ func deleteNetPol(t *testing.T, f *netPolFixture, netPolObj *networkingv1.Networ
201201 }
202202
203203 if f .netPolController .workqueue .Len () == 0 {
204+ t .Logf ("Complete deleting network policy event. workqueue is empty" )
204205 return
205206 }
206207
207208 f .netPolController .processNextWorkItem ()
209+ t .Logf ("Complete deleting network policy event" )
208210}
209211
210212func addAndUpdateNetPol (t * testing.T , f * netPolFixture , oldNetPolObj , newNetPolObj * networkingv1.NetworkPolicy ) {
@@ -226,6 +228,8 @@ func updateNetPol(t *testing.T, f *netPolFixture, oldNetPolObj, newNetPolObj *ne
226228 }
227229
228230 f .netPolController .processNextWorkItem ()
231+
232+ t .Logf ("Complete updating network policy event" )
229233}
230234
231235type expectedNetPolValues struct {
@@ -558,7 +562,7 @@ func TestUpdateNetworkPolicy(t *testing.T) {
558562 newNetPolObj := oldNetPolObj .DeepCopy ()
559563 // oldNetPolObj.ResourceVersion value is "0"
560564 newRV , _ := strconv .Atoi (oldNetPolObj .ResourceVersion )
561- newNetPolObj .ResourceVersion = fmt . Sprintf ( "%d" , newRV + 1 )
565+ newNetPolObj .ResourceVersion = strconv . Itoa ( newRV + 1 )
562566 var testCases []expectedNetPolValues
563567
564568 if util .IsWindowsDP () {
@@ -603,7 +607,7 @@ func TestLabelUpdateNetworkPolicy(t *testing.T) {
603607 }
604608 // oldNetPolObj.ResourceVersion value is "0"
605609 newRV , _ := strconv .Atoi (oldNetPolObj .ResourceVersion )
606- newNetPolObj .ResourceVersion = fmt . Sprintf ( "%d" , newRV + 1 )
610+ newNetPolObj .ResourceVersion = strconv . Itoa ( newRV + 1 )
607611
608612 var testCases []expectedNetPolValues
609613
@@ -1067,7 +1071,7 @@ func TestCountsUpdateNetPol(t *testing.T) {
10671071 newNetPolObj := createNetPol ()
10681072 newNetPolObj .Spec = * tt .updatedNetPolSpec
10691073 newRV , _ := strconv .Atoi (netPolObj .ResourceVersion )
1070- newNetPolObj .ResourceVersion = fmt . Sprintf ( "%d" , newRV + 1 )
1074+ newNetPolObj .ResourceVersion = strconv . Itoa ( newRV + 1 )
10711075 updateNetPol (t , f , netPolObj , newNetPolObj )
10721076 testCases = []expectedNetPolValues {
10731077 {1 , 0 , netPolPromVals {1 , 1 , 1 , 0 }},
0 commit comments