Don't specify SKIP_MERGEABLE for the get() call in the ChangeApi.
Change-Id: Ie9e1bc143ca263d95d66c2dee2491a4d0876135e
This commit is contained in:
@@ -508,7 +508,9 @@ class ChangeApiImpl implements ChangeApi {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ChangeInfo get() throws RestApiException {
|
public ChangeInfo get() throws RestApiException {
|
||||||
return get(EnumSet.complementOf(EnumSet.of(ListChangesOption.CHECK)));
|
return get(
|
||||||
|
EnumSet.complementOf(
|
||||||
|
EnumSet.of(ListChangesOption.CHECK, ListChangesOption.SKIP_MERGEABLE)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -244,6 +244,9 @@ public class ChangeIT extends AbstractDaemonTest {
|
|||||||
ChangeInfo c =
|
ChangeInfo c =
|
||||||
gApi.changes().id(triplet).get(ImmutableList.of(ListChangesOption.SKIP_MERGEABLE));
|
gApi.changes().id(triplet).get(ImmutableList.of(ListChangesOption.SKIP_MERGEABLE));
|
||||||
assertThat(c.mergeable).isNull();
|
assertThat(c.mergeable).isNull();
|
||||||
|
|
||||||
|
c = gApi.changes().id(triplet).get();
|
||||||
|
assertThat(c.mergeable).isTrue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user