File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
android/src/test/java/com/instabug/flutter Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -661,11 +661,11 @@ public void testSetNetworkLogBodyDisabled() {
661
661
662
662
@ Test
663
663
public void testGetNetworkBodyMaxSize () {
664
- int expected = 10240 ;
665
- InstabugPigeon .Result <Long > result = makeResult ((actual ) -> assertEquals ((Long ) ( long ) expected , actual ));
664
+ double expected = 10240 ;
665
+ InstabugPigeon .Result <Double > result = makeResult ((actual ) -> assertEquals ((Double ) expected , actual ));
666
666
667
667
mockkObject (new InternalCore []{InternalCore .INSTANCE }, false );
668
- every (mockKMatcherScope -> InternalCore .INSTANCE .get_networkLogCharLimit ()).returns (expected );
668
+ every (mockKMatcherScope -> InternalCore .INSTANCE .get_networkLogCharLimit ()).returns (( int ) expected );
669
669
670
670
api .getNetworkBodyMaxSize (result );
671
671
}
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ void main() {
54
54
"isW3cCaughtHeaderEnabled" : true ,
55
55
}),
56
56
);
57
+ when (mInstabugHost.getNetworkBodyMaxSize ()).thenAnswer (
58
+ (_) => Future .value (10240 ),
59
+ );
57
60
await FeatureFlagsManager ().registerFeatureFlagsListener ();
58
61
59
62
final isW3CExternalTraceID =
@@ -74,6 +77,9 @@ void main() {
74
77
"isW3cCaughtHeaderEnabled" : true ,
75
78
}),
76
79
);
80
+ when (mInstabugHost.getNetworkBodyMaxSize ()).thenAnswer (
81
+ (_) => Future .value (10240 ),
82
+ );
77
83
78
84
await FeatureFlagsManager ().registerFeatureFlagsListener ();
79
85
You can’t perform that action at this time.
0 commit comments