diff --git a/javatests/google/registry/flows/domain/DomainCreateFlowTest.java b/javatests/google/registry/flows/domain/DomainCreateFlowTest.java index fd2c6d48f..514fce144 100644 --- a/javatests/google/registry/flows/domain/DomainCreateFlowTest.java +++ b/javatests/google/registry/flows/domain/DomainCreateFlowTest.java @@ -154,7 +154,7 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase { IllegalArgumentException.class, "Don't pass both --initial_tld_state and --tld_state_transitions"); runCommandForced( - String.format("--tld_state_transitions=%s=PREDELEGATION,%s=SUNRISE", now, now.plus(1)), + String.format( + "--tld_state_transitions=%s=PREDELEGATION,%s=SUNRISE", + now, now.plus(Duration.millis(1))), "--initial_tld_state=GENERAL_AVAILABILITY", "--dns_writers=VoidDnsWriter", "xn--q9jyb4c"); diff --git a/javatests/google/registry/tools/UpdateTldCommandTest.java b/javatests/google/registry/tools/UpdateTldCommandTest.java index cf2066913..5cb945252 100644 --- a/javatests/google/registry/tools/UpdateTldCommandTest.java +++ b/javatests/google/registry/tools/UpdateTldCommandTest.java @@ -530,7 +530,9 @@ public class UpdateTldCommandTest extends CommandTestCase { thrown.expect( ParameterException.class, "not formatted correctly or has transition times out of order"); runCommandForced( - String.format("--tld_state_transitions=%s=PREDELEGATION,%s=SUNRISE", now, now.minus(1)), + String.format( + "--tld_state_transitions=%s=PREDELEGATION,%s=SUNRISE", + now, now.minus(Duration.millis(1))), "xn--q9jyb4c"); } @@ -630,7 +632,9 @@ public class UpdateTldCommandTest extends CommandTestCase { thrown.expect( ParameterException.class, "not formatted correctly or has transition times out of order"); runCommandForced( - String.format("--renew_billing_cost_transitions=\"%s=USD 1,%s=USD 2\"", now, now.minus(1)), + String.format( + "--renew_billing_cost_transitions=\"%s=USD 1,%s=USD 2\"", + now, now.minus(Duration.millis(1))), "xn--q9jyb4c"); }