Skip to content

Commit

Permalink
test: fix flaky unit tests
Browse files Browse the repository at this point in the history
`tests/data` tests are flaky due to `-n 10` in `pytest.ini`, they are trying to get contents from `globalConfig.json` which may be not in stable state.

Examples:

* https://github.com/splunk/addonfactory-ucc-generator/runs/2783628522
* https://github.com/splunk/addonfactory-ucc-generator/runs/2775867028
  • Loading branch information
Artem Rys committed Jun 9, 2021
1 parent e5b2cdb commit 880dd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ addopts = -v --tb=long
--splunk-data-generator=tests/data
--splunk-type=docker
--sc4s-host=sc4s
-n 10
-n 1
--keepalive
filterwarnings =
ignore::DeprecationWarning

0 comments on commit 880dd11

Please sign in to comment.