Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Streaming results to cloud sends wrong threshold values #849

Closed
na-- opened this issue Nov 23, 2018 · 0 comments
Closed

Streaming results to cloud sends wrong threshold values #849

na-- opened this issue Nov 23, 2018 · 0 comments

Comments

@na--
Copy link
Member

na-- commented Nov 23, 2018

import http from "k6/http";
import { sleep } from "k6";

export let options = {
    duration: "10s",
    vus: 5,
    thresholds: {
        "http_reqs": ["count > 10"],
    },
};

export default function () {
    http.get("https://httpbin.org");
    sleep(2);
};

This script, when executed with k6 run -o cloud, doesn't fail due to any thresholds being crossed, but it will still send this to the cloud API, marking the thresholds crossed and the test as failed:

{"result_status":1,"run_status":3,"thresholds":{"http_reqs":{"count \u003e 10":true}}}

The end of test summary shows this, so it's definitely a bug:

  ✓ http_reqs..................: 25     2.49997/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant