1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 23:23:32 +00:00

Delete entity synchronously in test method setup

Observed in Gradle test when it seems that the mutating command is
executed before deletion has taken effect.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=229585754
This commit is contained in:
weiminyu
2019-01-16 10:49:12 -08:00
committed by jianglai
parent 8cfb748316
commit 1e218d1d5b

View File

@@ -114,7 +114,7 @@ public class MutatingCommandTest {
@Test
public void testSuccess_create() throws Exception {
ofy().deleteWithoutBackup().entities(Arrays.asList(host1, host2, registrar1, registrar2));
ofy().deleteWithoutBackup().entities(Arrays.asList(host1, host2, registrar1, registrar2)).now();
MutatingCommand command = new MutatingCommand() {
@Override
protected void init() {