Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 28, 2023
1 parent 553f739 commit e2993d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flutter/test/sentry_native_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ void main() {
test('collectProfile', () async {
final traceId = SentryId.newId();
const startTime = 42;
when(fixture.methodChannel.invokeMethod('collectProfile', {
when(fixture.methodChannel.invokeMapMethod('collectProfile', {
'traceId': traceId.toString(),
'startTime': startTime
})).thenAnswer((_) => Future.value());

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

verify(fixture.methodChannel.invokeMethod('collectProfile',
verify(fixture.methodChannel.invokeMapMethod('collectProfile',
{'traceId': traceId.toString(), 'startTime': startTime}));
});
});
Expand Down

0 comments on commit e2993d6

Please sign in to comment.