From df533c998d0c032b143436ab9d073118035dc44c Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 22 Sep 2020 10:09:10 -0400 Subject: [PATCH] chore: Remove retry until after timeout test (#4050) --- src/test_util/mod.rs | 12 ------------ src/transforms/lua/v2/interop/event.rs | 20 -------------------- 2 files changed, 32 deletions(-) diff --git a/src/test_util/mod.rs b/src/test_util/mod.rs index 6ac46759cd253..dec5ac4945d4f 100644 --- a/src/test_util/mod.rs +++ b/src/test_util/mod.rs @@ -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> = 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 { diff --git a/src/transforms/lua/v2/interop/event.rs b/src/transforms/lua/v2/interop/event.rs index ed3fb8deedaeb..839f897c9839e 100644 --- a/src/transforms/lua/v2/interop/event.rs +++ b/src/transforms/lua/v2/interop/event.rs @@ -156,24 +156,4 @@ mod test { }"#; Lua::new().context(|ctx| ctx.load(lua_event).eval::().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::().unwrap()); - } }