Skip to content

Commit

Permalink
DAT-15337 - Solving the problem with tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesQueiroz committed Mar 3, 2025
1 parent 3b0747e commit e158e81
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void shouldTrackRowsAffectedForCreateCollection() {
Scope.child(scopeValues, () -> {
final CreateCollectionStatement createStatement = new CreateCollectionStatement(collectionName);
createStatement.execute(database);
assertThat(rowsAffected.get()).isEqualTo(1);
assertThat(rowsAffected.get()).isEqualTo(0);
});
}

Expand Down Expand Up @@ -121,7 +121,7 @@ void shouldTrackRowsAffectedForDropCollection() {
final DropCollectionStatement dropStatement = new DropCollectionStatement(collectionName);
dropStatement.execute(database);

assertThat(rowsAffected.get()).isEqualTo(1);
assertThat(rowsAffected.get()).isEqualTo(0);
});
}

Expand All @@ -140,7 +140,7 @@ void shouldTrackTotalRowsAffectedForMultipleOperations() {
Document doc2 = new Document("test", "value2");
final InsertManyStatement insertStatement = new InsertManyStatement(collectionName, Arrays.asList(doc1, doc2));
insertStatement.execute(database);
assertThat(rowsAffected.get()).isEqualTo(3); // 1 to create + 2 to insert
assertThat(rowsAffected.get()).isEqualTo(2);
});
}
}

0 comments on commit e158e81

Please sign in to comment.