Disable hashtag tests under GERRIT_NOTEDB=write

For hashtags we require reading changes to be enabled; we will still
get no values if only writing is enabled, but notesMigration() will
still be true in that case.

Change-Id: I60dbdf94227a7deb28adfc06a4a9f14b91fc129d
This commit is contained in:
Dave Borowitz
2016-05-05 17:50:42 -04:00
parent 071e32506b
commit c2ca86c10a
3 changed files with 6 additions and 8 deletions

View File

@@ -1071,7 +1071,7 @@ public abstract class AbstractQueryChangesTest extends GerritServerTests {
@Test
public void byHashtagWithNoteDb() throws Exception {
assume().that(notesMigration.enabled()).isTrue();
assume().that(notesMigration.readChanges()).isTrue();
List<Change> changes = setUpHashtagChanges();
assertQuery("hashtag:foo", changes.get(1), changes.get(0));
assertQuery("hashtag:bar", changes.get(1));