From 7d196bacbecd510394f728268fac5c3ab38bec81 Mon Sep 17 00:00:00 2001 From: dkijania Date: Wed, 14 Oct 2020 12:35:41 +0200 Subject: [PATCH] added test assertions --- .../src/common/network/controller.rs | 8 ++++---- .../jormungandr-integration-tests/src/networking/p2p.rs | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/testing/jormungandr-integration-tests/src/common/network/controller.rs b/testing/jormungandr-integration-tests/src/common/network/controller.rs index b87c51b43e..253226e23f 100644 --- a/testing/jormungandr-integration-tests/src/common/network/controller.rs +++ b/testing/jormungandr-integration-tests/src/common/network/controller.rs @@ -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, @@ -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; diff --git a/testing/jormungandr-integration-tests/src/networking/p2p.rs b/testing/jormungandr-integration-tests/src/networking/p2p.rs index e7ab1e0dc0..884a20d848 100644 --- a/testing/jormungandr-integration-tests/src/networking/p2p.rs +++ b/testing/jormungandr-integration-tests/src/networking/p2p.rs @@ -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(); }