Make nomulus list_cursors command faster by batching loads

They're all in the same entity group anyway (the cross-TLD one), so they can be
loaded in a single call instead of individually.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201364854
This commit is contained in:
mcilwain 2018-06-20 09:24:38 -07:00 committed by Ben McIlwain
parent 6f2e663b72
commit a5cc359813
2 changed files with 30 additions and 29 deletions

View file

@ -42,9 +42,7 @@ public class ListCursorsCommandTest extends CommandTestCase<ListCursorsCommand>
Cursor.create(CursorType.BRDA, DateTime.parse("1984-12-18TZ"), Registry.get("bar")));
runCommand("--type=BRDA");
assertThat(getStdoutAsLines())
.containsExactly(
"1984-12-18T00:00:00.000Z bar",
"absent foo")
.containsExactly("(absent) foo", "1984-12-18T00:00:00.000Z bar")
.inOrder();
}
@ -65,6 +63,6 @@ public class ListCursorsCommandTest extends CommandTestCase<ListCursorsCommand>
createTlds("foo", "bar");
persistResource(Registry.get("bar").asBuilder().setEscrowEnabled(true).build());
runCommand("--type=BRDA", "--escrow_enabled");
assertThat(getStdoutAsLines()).containsExactly("absent bar");
assertThat(getStdoutAsLines()).containsExactly("(absent) bar");
}
}