Make gossipsub conf test run by default

This commit is contained in:
Gusto Bacvinka 2023-03-10 19:08:46 +02:00
parent d2944893b5
commit 61a3f4b426
2 changed files with 3 additions and 4 deletions

View File

@ -185,10 +185,10 @@ pub struct GossipSubParams {
/// Maximum number of IHAVE messages to accept from a peer within a heartbeat.
#[serde(rename = "maxIHaveMessages")]
pub max_ihave_messages: Option<i32>,
#[serde(rename = "iwantFollowupTimeSeconds")]
/// Time to wait for a message requested through IWANT following an IHAVE advertisement.
/// If the message is not received within this window, a broken promise is declared and
/// the router may apply bahavioural penalties.
#[serde(rename = "iwantFollowupTimeSeconds")]
pub iwant_followup_time_seconds: Option<i32>,
}

View File

@ -249,10 +249,9 @@ async fn default_echo() -> Result<(), String> {
Ok(())
}
#[ignore]
#[tokio::test]
#[test]
#[serial]
async fn gossipsub_config() -> Result<(), String> {
fn gossipsub_config() -> Result<(), String> {
let params = GossipSubParams {
d: Some(6),
dlo: Some(3),