Skip to content

Commit 83d2060

Browse files
committed
content test [nfc]: Have prepareContentBare prepare test image HTTP client
1 parent c8f6822 commit 83d2060

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/widgets/content_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ void main() {
117117
widget = GlobalStoreWidget(child: widget);
118118
addTearDown(testBinding.reset);
119119

120+
prepareBoringImageHttpClient();
121+
120122
final pushedRoutes = <Route<dynamic>>[];
121123
final testNavObserver = TestNavigatorObserver()
122124
..onPushed = (route, prevRoute) => pushedRoutes.add(route);
@@ -134,6 +136,8 @@ void main() {
134136
await tester.pump();
135137
}
136138

139+
debugNetworkImageHttpClientProvider = null;
140+
137141
// `tester.pumpWidget` introduces an initial route;
138142
// remove it so consumers only have newly pushed routes.
139143
assert(pushedRoutes.length == 1);

0 commit comments

Comments
 (0)