fcsonline / drill

Drill is an HTTP load testing application written in Rust
GNU General Public License v3.0
2.09k stars 111 forks source link

`pick` doesn't work for `with_items_range` #171

Closed erkannt closed 1 year ago

erkannt commented 1 year ago

Given this setup I see 1000 requests rather than the expected 10.

---

concurrency: 1
base: 'http://localhost:8080'
iterations: 10

plan:
  - name: Post with a random value
    request:
      url: /api/record-evaluation
      method: POST
      body: >
        {
          "foo": "{{ item }}",
        }
      headers: 
        Content-Type: 'application/json'
    with_items_range:
      start: 1
      step: 1
      stop: 100
    shuffle: true
    pick: 1

Not very familiar with golang, but searching the code it looks to me like pick hasn't been implemented for with_items_range?

Happy to try my hand at a PR if that is the case.

fcsonline commented 1 year ago

I'm not very familiar with golang either. 😉 Whatever Rust pull request for a bugfix will be welcomed.

erkannt commented 1 year ago

I'm not very familiar with golang either. wink Whatever Rust pull request for a bugfix will be welcomed.

The coffee obviously hadn't taken effect yet :doh:. Will see what I can do.