Skip to content

Commit 36b4cfa

Browse files
authored
Fix: Flaky Transaction Test (#807)
1 parent f3eb151 commit 36b4cfa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flutter/test/sentry_navigator_observer_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ void main() {
3434
}
3535

3636
setUp(() {
37+
SentryNative().reset();
3738
fixture = Fixture();
3839
});
3940

@@ -75,7 +76,7 @@ void main() {
7576

7677
final sut = fixture.getSut(
7778
hub: hub,
78-
autoFinishAfter: Duration(milliseconds: 10),
79+
autoFinishAfter: Duration(milliseconds: 50),
7980
);
8081

8182
sut.didPush(currentRoute, null);
@@ -88,7 +89,7 @@ void main() {
8889
actualTransaction = scope.span as SentryTracer;
8990
});
9091

91-
await Future.delayed(Duration(milliseconds: 20));
92+
await Future.delayed(Duration(milliseconds: 500));
9293

9394
expect(mockNativeChannel.numberOfEndNativeFramesCalls, 1);
9495

0 commit comments

Comments
 (0)