Skip to content

Commit

Permalink
Fix/increase fuzz runs (#47)
Browse files Browse the repository at this point in the history
* increase fuzz tests run

* wait more time on fork integration test
  • Loading branch information
error2215 authored Feb 12, 2024
1 parent 0d78721 commit b52a16d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion shuttle/tests/it/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,13 @@ async fn test_reset_fork_on_new_blocks() {
let mut stream = provider.watch_blocks().await.unwrap();
// the http watcher may fetch multiple blocks at once, so we set a timeout here to offset edge
// cases where the stream immediately returns a block
tokio::time::sleep(Network::Mainnet.average_blocktime_hint().unwrap()).await;
tokio::time::sleep(
Network::Mainnet
.average_blocktime_hint()
.unwrap()
.saturating_add(Network::Mainnet.average_blocktime_hint().unwrap()),
)
.await;
stream.next().await.unwrap();
stream.next().await.unwrap();

Expand Down
6 changes: 3 additions & 3 deletions spark/tests/it/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ impl TestConfig {
}
for (_, SuiteResult { test_results, .. }) in suite_result {
for (test_name, result) in test_results {
if self.should_fail && (result.status == TestStatus::Success) ||
!self.should_fail && (result.status == TestStatus::Failure)
if self.should_fail && (result.status == TestStatus::Success)
|| !self.should_fail && (result.status == TestStatus::Failure)
{
let logs = decode_console_logs(&result.logs);
let outcome = if self.should_fail { "fail" } else { "pass" };
Expand All @@ -101,7 +101,7 @@ impl TestConfig {
pub fn test_opts() -> TestOptions {
TestOptions {
fuzz: FuzzConfig {
runs: 256,
runs: 512,
max_test_rejects: 65536,
seed: None,
dictionary: FuzzDictionaryConfig {
Expand Down

0 comments on commit b52a16d

Please sign in to comment.