Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Dec 12, 2024
1 parent b3b799d commit c2de14b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/ffigen/test/native_objc_test/block_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ void main() {
}, skip: !canDoGC);

test('Blocking block ref counting new thread', () async {
final completer = Completer();
final completer = Completer<void>();
DummyObject? dummyObject = DummyObject.new1();
DartObjectListenerBlock? block =
ObjectListenerBlock.blocking((DummyObject obj) {
Expand All @@ -792,10 +792,10 @@ void main() {
final rawDummyObject = dummyObject!.ref.pointer;
expect(objectRetainCount(rawDummyObject), 1);

dummyObject = null;
block = null;
tester.invokeAndReleaseListenerOnNewThread();
await completer.future;
dummyObject = null;
block = null;
doGC();
await Future<void>.delayed(Duration.zero); // Let dispose message arrive.
doGC();
Expand Down

0 comments on commit c2de14b

Please sign in to comment.