Convert most NotesMigration#enabled() calls to #readChanges()
Most of the time this is used to avoid codepaths that shouldn't be enabled unless *both* NoteDb reads and writes are enabled. Change-Id: I75958e79e20199f3b19a539bf22b7c3b49a066ee
This commit is contained in:
@@ -456,8 +456,8 @@ public abstract class AbstractPushForReview extends AbstractDaemonTest {
|
||||
|
||||
@Test
|
||||
public void testPushForMasterWithHashtagsNoteDbDisabled() throws Exception {
|
||||
// push with hashtags should fail when noteDb is disabled
|
||||
assume().that(notesMigration.enabled()).isFalse();
|
||||
// Push with hashtags should fail when reading from NoteDb is disabled.
|
||||
assume().that(notesMigration.readChanges()).isFalse();
|
||||
PushOneCommit.Result r = pushTo("refs/for/master%hashtag=tag1");
|
||||
r.assertErrorStatus("cannot add hashtags; noteDb is disabled");
|
||||
}
|
||||
|
Reference in New Issue
Block a user