Skip to content

Commit

Permalink
Make tests less fragile (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
goderbauer committed Dec 13, 2022
1 parent 448bd1f commit 1b3374c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/inherited_provider_test.dart
Expand Up @@ -554,7 +554,7 @@ The context used was: Context
),
);

final rootElement = tester.allElements.first;
final rootElement = tester.element(find.bySubtype<InheritedProvider>());

expect(
rootElement.toString(),
Expand Down Expand Up @@ -583,7 +583,7 @@ The context used was: Context
),
);

final rootElement = tester.allElements.first;
final rootElement = tester.element(find.bySubtype<InheritedProvider>());

expect(
rootElement.toString(),
Expand All @@ -607,7 +607,7 @@ The context used was: Context
),
);

final rootElement = tester.allElements.first;
final rootElement = tester.element(find.bySubtype<InheritedProvider>());

expect(
rootElement.toString(),
Expand All @@ -634,7 +634,7 @@ The context used was: Context
),
);

final rootElement = tester.allElements.first;
final rootElement = tester.element(find.bySubtype<DeferredInheritedProvider>());

expect(
rootElement.toString(),
Expand Down Expand Up @@ -665,7 +665,7 @@ DeferredInheritedProvider<int, int>(controller: 42, value: 24)'''),
),
);

final rootElement = tester.allElements.first;
final rootElement = tester.element(find.bySubtype<InheritedProvider>());

expect(
rootElement.toString(),
Expand Down

0 comments on commit 1b3374c

Please sign in to comment.