Skip to content

Commit

Permalink
added test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Oct 14, 2020
1 parent 560da27 commit 7d196ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
use crate::common::{
configuration::JormungandrParams,
jormungandr::starter::{Starter, StartupError},
jormungandr::JormungandrProcess,
configuration::JormungandrParams
};
use assert_fs::fixture::FixtureError;
use assert_fs::prelude::*;
use assert_fs::TempDir;
use chain_impl_mockchain::{fee::LinearFee, header::HeaderId};
use jormungandr_lib::{
crypto::hash::Hash,
Expand All @@ -13,9 +16,6 @@ use jormungandr_testing_utils::testing::{
FragmentSender, FragmentSenderSetup, FragmentSenderSetupBuilder,
};
use jormungandr_testing_utils::{testing::network_builder::NodeSetting, wallet::Wallet};
use assert_fs::fixture::FixtureError;
use assert_fs::prelude::*;
use assert_fs::TempDir;
use std::path::PathBuf;
use thiserror::Error;

Expand Down
4 changes: 4 additions & 0 deletions testing/jormungandr-integration-tests/src/networking/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,8 @@ pub fn topics_of_interest_influences_node_sync_ability() {
fast_client_block_recv_cnt >= slow_client_block_recv_cnt,
"node with high block topic of interest should have more recieved blocks fast:{} vs slow:{}",fast_client_block_recv_cnt,slow_client_block_recv_cnt
);

server.assert_no_errors_in_log();
fast_client.assert_no_errors_in_log();
slow_client.assert_no_errors_in_log();
}

0 comments on commit 7d196ba

Please sign in to comment.