diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/OnlineNoteDbMigrationIT.java b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/OnlineNoteDbMigrationIT.java index 135809082f..32c556b4e2 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/OnlineNoteDbMigrationIT.java +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/OnlineNoteDbMigrationIT.java @@ -645,6 +645,7 @@ public class OnlineNoteDbMigrationIT extends AbstractDaemonTest { String expectMessageContains, PrepareBuilder b, RunMigration m) throws Exception { try { migrate(b, m); + assert_().fail("expected MigrationException"); } catch (MigrationException e) { assertThat(e).hasMessageThat().contains(expectMessageContains); }