File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ spec:
190
190
Check : scaffold .WithExpectedStatus (503 ),
191
191
})
192
192
193
- for i := 0 ; i < 10 ; i ++ {
193
+ for range 10 {
194
194
s .RequestAssert (& scaffold.RequestAssert {
195
195
Method : "GET" ,
196
196
Path : "/get" ,
Original file line number Diff line number Diff line change @@ -1676,7 +1676,7 @@ spec:
1676
1676
hitNginxCnt = 0
1677
1677
hitHttpbinCnt = 0
1678
1678
)
1679
- for i := 0 ; i < 20 ; i ++ {
1679
+ for range 20 {
1680
1680
resp := s .NewAPISIXClient ().GET ("/get" ).
1681
1681
WithHeader ("Host" , "httpbin.example" ).
1682
1682
Expect ()
@@ -1702,7 +1702,7 @@ spec:
1702
1702
hitNginxCnt = 0
1703
1703
hitHttpbinCnt = 0
1704
1704
)
1705
- for i := 0 ; i < 20 ; i ++ {
1705
+ for range 20 {
1706
1706
resp := s .NewAPISIXClient ().GET ("/get" ).
1707
1707
WithHeader ("Host" , "httpbin.example" ).
1708
1708
Expect ()
@@ -1879,7 +1879,7 @@ spec:
1879
1879
upstreamHosts := make (map [string ]int )
1880
1880
totalRequests := 20
1881
1881
1882
- for i := 0 ; i < totalRequests ; i ++ {
1882
+ for range totalRequests {
1883
1883
statusCode := s .NewAPISIXClient ().GET ("/headers" ).Expect ().Raw ().StatusCode
1884
1884
Expect (statusCode ).To (Or (Equal (http .StatusOK ), Equal (http .StatusMovedPermanently )))
1885
1885
You can’t perform that action at this time.
0 commit comments