ChangeEditIT: Don't use reviewdb to look up patch sets

Change-Id: I9824a2dbbf293313bcaf35451529f9812accc9f0
This commit is contained in:
Dave Borowitz
2016-01-28 15:48:49 -05:00
committed by Edwin Kempin
parent 64ccb8ba68
commit 77d45ed0b2

View File

@@ -781,8 +781,8 @@ public class ChangeEditIT extends AbstractDaemonTest {
}
private PatchSet getCurrentPatchSet(String changeId) throws Exception {
return db.patchSets()
.get(getChange(changeId).currentPatchSetId());
return getOnlyElement(queryProvider.get().byKeyPrefix(changeId))
.currentPatchSet();
}
private static void assertByteArray(BinaryResult result, byte[] expected)