We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b33bc commit 7cba8f1Copy full SHA for 7cba8f1
test/over_react_test/common_component_util_test.dart
@@ -106,10 +106,16 @@ main() {
106
'before consumer setUpAll blocks are called');
107
});
108
109
+ int setUpCallCount = 0;
110
setUp(() {
- expect(wasFactoryCalled, isFalse,
111
- reason: 'factory arg was called within group, '
112
- 'before consumer setUp blocks are called');
+ // Only do this the first time, since it gets called before every
+ // test inside commonComponentTests.
113
+ if (setUpCallCount == 0) {
114
+ expect(wasFactoryCalled, isFalse,
115
+ reason: 'factory arg was called within group, '
116
+ 'before consumer setUp blocks are called');
117
+ }
118
+ setUpCallCount++;
119
120
121
commonComponentTests(() {
0 commit comments