Skip to content

Commit 0449b5f

Browse files
committed
Fix databaseMerge test regression
1 parent 53e0dfe commit 0449b5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/DatabaseBackupTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ default void backupToSQLiteAndRestoreTwice() throws Exception {
202202
}
203203
}
204204

205-
@Test
205+
@Test // This test can regress intentionally if merging rules are ignored for new tables.
206206
default void databaseMerge() throws Exception {
207207
File tempFile = Files.createTempFile(dataFolder().toPath(), "backup-", ".db").toFile();
208208
tempFile.deleteOnExit();
@@ -256,6 +256,7 @@ default void databaseMerge() throws Exception {
256256
expected.put(WebGroupTable.TABLE_NAME, beforeBackupTo.get(WebGroupTable.TABLE_NAME));
257257
expected.put(WebPermissionTable.TABLE_NAME, beforeBackupTo.get(WebPermissionTable.TABLE_NAME));
258258
expected.put(WebGroupToPermissionTable.TABLE_NAME, beforeBackupTo.get(WebGroupToPermissionTable.TABLE_NAME));
259+
expected.put(RegistrationTable.TABLE_NAME, 0);
259260
Map<String, Integer> result = backup.query(LookupTableQueries.tableCounts());
260261
assertEquals(expected, result);
261262

0 commit comments

Comments
 (0)