Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Jun 24, 2024
1 parent e0e2389 commit afb7882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/realm_dart/test/client_reset_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void main() {
await expectLater(
clientResetFuture,
throwsA(isA<ClientResetError>().having((e) => e.innerError?.toString(), 'innerError', 'Exception: This fails!').having((e) => e.toString(), 'message',
"ClientResetError message: A fatal error occurred during client reset: 'User-provided callback failed', inner error: 'Exception: This fails!'")));
"ClientResetError message: A fatal error occurred during 'ClientReset' client reset for SyncClientResetRequired: Bad client file identifier (IDENT): 'User-provided callback failed', inner error: 'Exception: This fails!'")));
});

baasTest('$clientResetHandlerType.onManualResetFallback invoked when throw in onAfterReset', (appConfig) async {
Expand Down Expand Up @@ -177,7 +177,7 @@ void main() {
throwsA(isA<ClientResetError>().having((e) => e.innerError?.toString(), 'innerError', 'Exception: This fails too!').having(
(e) => e.toString(),
'message',
"ClientResetError message: A fatal error occurred during client reset: 'User-provided callback failed', inner error: 'Exception: This fails too!'")));
"ClientResetError message: A fatal error occurred during 'ClientReset' client reset for SyncClientResetRequired: Bad client file identifier (IDENT): 'User-provided callback failed', inner error: 'Exception: This fails too!'")));
});

baasTest('$clientResetHandlerType.onBeforeReset and onAfterReset are invoked', (appConfig) async {
Expand Down

0 comments on commit afb7882

Please sign in to comment.