aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/tests
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/tests')
-rw-r--r--mingling_core/tests/test-all/tests/integration.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_core/tests/test-all/tests/integration.rs b/mingling_core/tests/test-all/tests/integration.rs
index c622835..e173374 100644
--- a/mingling_core/tests/test-all/tests/integration.rs
+++ b/mingling_core/tests/test-all/tests/integration.rs
@@ -140,12 +140,12 @@ fn test_is_not_completing() {
fn test_hook_setup() {
static CALLED: AtomicBool = AtomicBool::new(false);
- let hook = ProgramHook::<MockProgramCollect>::empty().on_begin(|| {
+ let hook = ProgramHook::<MockProgramCollect>::empty().on_begin::<_, ()>(|_| {
CALLED.store(true, Ordering::SeqCst);
});
assert!(hook.begin.is_some());
- (hook.begin.unwrap())();
+ (hook.begin.unwrap())(&mingling::hook::HookBeginInfo {});
assert!(CALLED.load(Ordering::SeqCst));
}