Skip to content

Commit

Permalink
Made wrk visit 3 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Dec 13, 2016
1 parent d0348bd commit c2d327f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/wrk_visit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
-- context and thus there will be one counter per thread

counter = 0
paths_to_visit = {"/de/page/feedback", "/de/page/about"}
paths_to_visit = {"/de/page/feedback", "/de/page/about", "/"}
request = function()
counter = counter + 1
return wrk.format(nil, paths_to_visit[(counter % 2)+ 1])
return wrk.format(nil, paths_to_visit[(counter % table.getn(paths_to_visit))+ 1])
end

0 comments on commit c2d327f

Please sign in to comment.