Skip to content

Commit

Permalink
chore: Remove retry until after timeout test (#4050)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamtur01 authored Sep 22, 2020
1 parent 39e56a8 commit df533c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
12 changes: 0 additions & 12 deletions src/test_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,18 +338,6 @@ mod tests {

retry_until(func, Duration::from_millis(10), Duration::from_secs(1)).await;
}

#[tokio::test]
#[should_panic]
async fn retry_until_after_timeout() {
let count: Arc<RwLock<i32>> = Arc::new(RwLock::new(0));
let func = || {
let count = Arc::clone(&count);
retry_until_helper(count)
};

retry_until(func, Duration::from_millis(50), Duration::from_millis(100)).await;
}
}

pub struct CountReceiver<T> {
Expand Down
20 changes: 0 additions & 20 deletions src/transforms/lua/v2/interop/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,24 +156,4 @@ mod test {
}"#;
Lua::new().context(|ctx| ctx.load(lua_event).eval::<Event>().unwrap());
}

#[test]
#[should_panic]
fn from_lua_both_log_and_metric() {
let lua_event = r#"{
log = {
field = "example",
nested = {
field = "another example"
}
},
metric = {
name = "example counter",
counter = {
value = 0.57721566
}
}
}"#;
Lua::new().context(|ctx| ctx.load(lua_event).eval::<Event>().unwrap());
}
}

0 comments on commit df533c9

Please sign in to comment.