Skip to content

Commit

Permalink
🩹 reduce timeouts for ZX timeout tests (#369)
Browse files Browse the repository at this point in the history
## Description

The new Apple Silicon runners from GitHub are just too fast for our
timeout tests 🤯
This PR reduces the timeouts in the ZX checker tests so that they should
work even on significantly faster systems.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

Signed-off-by: burgholzer <[email protected]>
  • Loading branch information
burgholzer authored Feb 22, 2024
1 parent 624efcd commit 60b99cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_symbolic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ TEST_F(SymbolicTest, Timeout) {
symQc2.rx(xMonom, 0);
}
ec::Configuration config{};
config.execution.timeout = 1;
config.execution.timeout = 0.1;
auto ecm = ec::EquivalenceCheckingManager(symQc1, symQc2, config);

ecm.run();
Expand Down
2 changes: 1 addition & 1 deletion test/test_zx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ TEST_F(ZXTest, Timeout) {
qcAlternative.h(0);
}

config.execution.timeout = 1;
config.execution.timeout = 0.1;
ecm = std::make_unique<ec::EquivalenceCheckingManager>(qcOriginal,
qcAlternative, config);

Expand Down

0 comments on commit 60b99cf

Please sign in to comment.