Skip to content

Commit

Permalink
Fixing edge case in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Mar 12, 2024
1 parent b358e97 commit 40c84ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1517,11 +1517,9 @@ fn weak_lifecycle() {
let collected = Ref::new(42_u32, &mut guard);

assert_eq!(collected.load(&guard), Some(&42));
drop(guard);

collect();
guard.collect();

let guard = CollectionGuard::acquire();
assert!(collected.load(&guard).is_none());
});
}
Expand Down

0 comments on commit 40c84ea

Please sign in to comment.