forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integration-tests: fix some expensive tests marking (near#6031)
Firstly, the proper way to denote a test as expensive is to use `#[cfg]` directive before its definition rather than adding a return inside of the function. The latter will cause the test to show up in list of tests and always pass giving people false sense that running the test without `expensive_tests` feature actually does something. After fixing `sync_state_nodes_multishard` also add it to nightly run. Secondly, the `check_nightly.py` script is rather crude and the order in which `#[cfg]` and `#[test]` attributes are applied do matter. With `#[test]` being first, the script failed to recognise `test_catchup` as an expensive test. Thirdly, the `check_nightly.py` script also doesn’t understand `#[cfg]` matching multiple features. Because of that it does not detect `test_highload` as an expensive test either. Since we’re not using `regression_tests` feature for anything simply remove it. Issue: near#4490
- Loading branch information
Showing
5 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters