Skip to content

Commit e2993d6

Browse files
committed
fix tests
1 parent 553f739 commit e2993d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flutter/test/sentry_native_channel_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ void main() {
184184
test('collectProfile', () async {
185185
final traceId = SentryId.newId();
186186
const startTime = 42;
187-
when(fixture.methodChannel.invokeMethod('collectProfile', {
187+
when(fixture.methodChannel.invokeMapMethod('collectProfile', {
188188
'traceId': traceId.toString(),
189189
'startTime': startTime
190190
})).thenAnswer((_) => Future.value());
191191

192192
final sut = fixture.getSut();
193193
await sut.collectProfile(traceId, startTime);
194194

195-
verify(fixture.methodChannel.invokeMethod('collectProfile',
195+
verify(fixture.methodChannel.invokeMapMethod('collectProfile',
196196
{'traceId': traceId.toString(), 'startTime': startTime}));
197197
});
198198
});

0 commit comments

Comments
 (0)