Skip to content

Commit

Permalink
Fix schema type for compact method
Browse files Browse the repository at this point in the history
  • Loading branch information
desistefanova committed Sep 19, 2023
1 parent c5cafcd commit ea21a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/realm_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ Future<void> main([List<String>? args]) async {
final credentials = Credentials.anonymous(reuseCredentials: false);
var user = await app.logIn(credentials);
final path = p.join(Configuration.defaultStoragePath, "${generateRandomString(8)}.realm");
final config = Configuration.flexibleSync(user, [Task.schema], path: path);
final config = Configuration.flexibleSync(user, [Product.schema], path: path);
final beforeCompactSize = await createRealmForCompact(config);
Future<void>.delayed(Duration(seconds: 5));

Expand All @@ -1553,7 +1553,7 @@ Future<void> main([List<String>? args]) async {
var user = await app.logIn(credentials);
List<int> key = List<int>.generate(encryptionKeySize, (i) => random.nextInt(256));
final path = p.join(Configuration.defaultStoragePath, "${generateRandomString(8)}.realm");
final config = Configuration.flexibleSync(user, [Task.schema], encryptionKey: key, path: path);
final config = Configuration.flexibleSync(user, [Product.schema], encryptionKey: key, path: path);
final beforeCompactSize = await createRealmForCompact(config);
Future<void>.delayed(Duration(seconds: 15));

Expand Down

0 comments on commit ea21a6a

Please sign in to comment.