Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Parameter --timeout not stopping collection run #3210

Open
AndreasFQuest opened this issue Mar 6, 2024 · 1 comment
Open

Parameter --timeout not stopping collection run #3210

AndreasFQuest opened this issue Mar 6, 2024 · 1 comment

Comments

@AndreasFQuest
Copy link

  1. Newman Version (can be found via newman -v): 6.1.1
  2. OS details (type, version, and architecture): docker on ubuntu 22.04
  3. Are you using Newman as a library, or via the CLI? CLI (docker image postman/newman:latest)
  4. Did you encounter this recently, or has this bug always been there: can't tell, first time user
  5. Expected behaviour: Collection execution stops when global timeout is exceeded
  6. Command / script used to run Newman:
time \
docker run --rm -v ~/collections/:/etc/newman -t postman/newman \
run timeout.postman_collection.json --insecure --reporters cli --reporter-cli-show-timestamps --timeout 15000
  1. Sample collection, and auxiliary files (minus the sensitive details): timeout.postman_collection.json
  2. Screenshots (if applicable):
    note the total run time of 91 seconds (1:31.64) compared to the 15 seconds timeout.
    image

Steps to reproduce the problem:

  1. run the supplied collection with a timeout of less than 12 minutes (e.g. with the command supplied above)
  2. measure the total runtime of newman
@AndreasFQuest
Copy link
Author

Same setup but timeout increased to 3 minutes (180000ms).
Expected runtime: just over 3 minutes.
Actual runtime 13:20.55 minutes.
image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant