Skip to content

Commit d39bd14

Browse files
committed
fix test regression after making TestEntity.id "assignable"
1 parent eaeabbc commit d39bd14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

objectbox/test/box_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,10 @@ void main() {
456456
});
457457

458458
test('assignable IDs', () {
459-
// TestEntity.id IS NOT assignable so this must fail
459+
// RelatedEntityA.id IS NOT assignable so this must fail
460+
final box = env.store.box<RelatedEntityA>();
460461
expect(
461-
() => box.put(TestEntity()..id = 1),
462+
() => box.put(RelatedEntityA()..id = 1),
462463
throwsA(predicate((ArgumentError e) => e
463464
.toString()
464465
.contains('ID is higher or equal to internal ID sequence'))));

0 commit comments

Comments
 (0)