Skip to content

Commit 51c1dd1

Browse files
committed
Iterate logGRPC() call 100,1000,1000 times in unit-test
1 parent d4dc73f commit 51c1dd1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/gce-pd-csi-driver/utils_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,10 @@ func TestLogGRPC(t *testing.T) {
875875
return nil, nil
876876
}
877877

878-
_, err := logGRPC(nil, req, info, handler)
879-
if err != nil {
880-
t.Fatalf("logGRPC returns error %v", err)
878+
for _ = range int64(100000000) {
879+
_, err := logGRPC(nil, req, info, handler)
880+
if err != nil {
881+
t.Fatalf("logGRPC returns error %v", err)
882+
}
881883
}
882884
}

0 commit comments

Comments
 (0)