Skip to content

Commit e3b6296

Browse files
chrisbobbegnprice
authored andcommitted
content test [nfc]: Have prepareContentBare prepare test image HTTP client
1 parent a4a7202 commit e3b6296

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
@@ -106,6 +106,8 @@ void main() {
106106
widget = GlobalStoreWidget(child: widget);
107107
addTearDown(testBinding.reset);
108108

109+
prepareBoringImageHttpClient();
110+
109111
await tester.pumpWidget(
110112
Builder(builder: (context) =>
111113
MaterialApp(
@@ -118,6 +120,8 @@ void main() {
118120
if (wrapWithPerAccountStoreWidget) {
119121
await tester.pump();
120122
}
123+
124+
debugNetworkImageHttpClientProvider = null;
121125
}
122126

123127
/// Test that the given content example renders without throwing an exception.

0 commit comments

Comments
 (0)