Skip to content

bug: Test version is slow only on MacOS #14

@matthewfeickert

Description

@matthewfeickert

In the CI

def test_version(script_runner):
command = "pyhf-validation --version"
start = time.time()
ret = script_runner.run(*shlex.split(command))
end = time.time()
elapsed = end - start
assert ret.success
assert hfval.__version__ in ret.stdout
assert ret.stderr == ""
# make sure it took less than a second
assert elapsed < 1.0

will often fail as it will take longer than 1 second for test_version to complete but only on MacOS. I am not sure why it is only MacOS, but this should be resolved.

c.f. PR #9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions