Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove retry until after timeout test #4050

Merged
merged 2 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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());
}
}