Skip to content

Commit

Permalink
chore: Remove retry until after timeout test (vectordotdev#4050)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Menges <brian.menges@anaplan.com>
  • Loading branch information
jamtur01 authored and Brian Menges committed Dec 9, 2020
1 parent 60e8fde commit 6d339dd
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 6d339dd

Please sign in to comment.