fix: github action scripts

This commit is contained in:
debugtalk
2020-04-13 00:02:13 +08:00
parent caa9503df8
commit 7bf275b7cc
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,10 @@ jobs:
poetry build poetry build
ls dist/*.whl | xargs pip install # test installation ls dist/*.whl | xargs pip install # test installation
hrun -V hrun -V
locusts -V hrun run -h
hrun startproject -h
hrun har2case -h
hrun locusts -h
- name: Run smoketest for hrun command - name: Run smoketest for hrun command
run: | run: |
cd tests/httpbin && hrun run basic.yml --failfast && cd - cd tests/httpbin && hrun run basic.yml --failfast && cd -

View File

@@ -83,7 +83,7 @@ class TestRunner(ApiServerUnittest):
test_runner.run_test(parsed_testcase["teststeps"][0]) test_runner.run_test(parsed_testcase["teststeps"][0])
end_time = time.time() end_time = time.time()
# testcase teardown hook has not been executed now # testcase teardown hook has not been executed now
self.assertLess(end_time - start_time, 1) self.assertLess(end_time - start_time, 2)
def test_run_testcase_with_hooks_assignment(self): def test_run_testcase_with_hooks_assignment(self):
testcases = [ testcases = [