diff --git a/CHANGELOG.md b/CHANGELOG.md index 67154318..8d4f6f55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ * Migrated angel_orm_generator to 4.0.0 (0/0 tests passed) * Migrated angel_migration_runner to 3.0.0 (0/0 tests passed) * Migrated angel_orm_test to 3.0.0 (0/0 tests passed) -* Migrated angel_orm_postgres to 3.0.0 (46/54 tests passed) +* Migrated angel_orm_postgres to 3.0.0 (48/54 tests passed) * Update orm-sdk-2.12.x boilerplate (in progress) <= Milestone 2 diff --git a/packages/orm/angel_orm_test/lib/src/many_to_many_test.dart b/packages/orm/angel_orm_test/lib/src/many_to_many_test.dart index 9d3c63f6..081b321a 100644 --- a/packages/orm/angel_orm_test/lib/src/many_to_many_test.dart +++ b/packages/orm/angel_orm_test/lib/src/many_to_many_test.dart @@ -134,7 +134,8 @@ manyToManyTests(FutureOr Function() createExecutor, ..email = 'Nelson'; var userOpt = await userQuery.insert(executor); expect(userOpt.isPresent, true); - userOpt.ifPresent((user) async { + if (userOpt.isPresent) { + var user = userOpt.value; expect(user.roles, isEmpty); // Fetch again, just to be doubly sure. @@ -144,6 +145,6 @@ manyToManyTests(FutureOr Function() createExecutor, fetchedOpt.ifPresent((fetched) { expect(fetched.roles, isEmpty); }); - }); + } }); }