@@ -102,9 +102,9 @@ public void testNonRetryUnarySettings() {
102102 // Verify that the gRPC channel used the CallOptions with our custom timeout of ~2 Days.
103103 assertThat (callOptionsUsed .getDeadline ()).isNotNull ();
104104 assertThat (callOptionsUsed .getDeadline ())
105- .isGreaterThan (Deadline .after (DEADLINE_IN_SECONDS - 1 , TimeUnit .SECONDS ));
105+ .isGreaterThan (Deadline .after (DEADLINE_IN_DAYS - 1 , TimeUnit .DAYS ));
106106 assertThat (callOptionsUsed .getDeadline ())
107- .isLessThan (Deadline .after (DEADLINE_IN_SECONDS , TimeUnit .SECONDS ));
107+ .isLessThan (Deadline .after (DEADLINE_IN_DAYS , TimeUnit .DAYS ));
108108 assertThat (callOptionsUsed .getAuthority ()).isEqualTo (CALL_OPTIONS_AUTHORITY );
109109 }
110110
@@ -126,9 +126,9 @@ public void testNonRetryUnarySettingsWithoutInitialRpcTimeout() {
126126 // Verify that the gRPC channel used the CallOptions with our custom timeout of ~2 Days.
127127 assertThat (callOptionsUsed .getDeadline ()).isNotNull ();
128128 assertThat (callOptionsUsed .getDeadline ())
129- .isGreaterThan (Deadline .after (DEADLINE_IN_MINUTES - 1 , TimeUnit .MINUTES ));
129+ .isGreaterThan (Deadline .after (DEADLINE_IN_DAYS - 1 , TimeUnit .DAYS ));
130130 assertThat (callOptionsUsed .getDeadline ())
131- .isLessThan (Deadline .after (DEADLINE_IN_MINUTES , TimeUnit .MINUTES ));
131+ .isLessThan (Deadline .after (DEADLINE_IN_DAYS , TimeUnit .DAYS ));
132132 assertThat (callOptionsUsed .getAuthority ()).isEqualTo (CALL_OPTIONS_AUTHORITY );
133133 }
134134
@@ -175,9 +175,9 @@ public void testNonRetryServerStreamingSettings() {
175175 // Verify that the gRPC channel used the CallOptions with our custom timeout of ~2 Days.
176176 assertThat (callOptionsUsed .getDeadline ()).isNotNull ();
177177 assertThat (callOptionsUsed .getDeadline ())
178- .isGreaterThan (Deadline .after (DEADLINE_IN_SECONDS - 1 , TimeUnit .SECONDS ));
178+ .isGreaterThan (Deadline .after (DEADLINE_IN_DAYS - 1 , TimeUnit .DAYS ));
179179 assertThat (callOptionsUsed .getDeadline ())
180- .isLessThan (Deadline .after (DEADLINE_IN_SECONDS , TimeUnit .SECONDS ));
180+ .isLessThan (Deadline .after (DEADLINE_IN_DAYS , TimeUnit .DAYS ));
181181 assertThat (callOptionsUsed .getAuthority ()).isEqualTo (CALL_OPTIONS_AUTHORITY );
182182 }
183183
@@ -199,9 +199,9 @@ public void testNonRetryServerStreamingSettingsWithoutInitialRpcTimeout() {
199199 // Verify that the gRPC channel used the CallOptions with our custom timeout of ~2 Days.
200200 assertThat (callOptionsUsed .getDeadline ()).isNotNull ();
201201 assertThat (callOptionsUsed .getDeadline ())
202- .isGreaterThan (Deadline .after (DEADLINE_IN_MINUTES - 1 , TimeUnit .MINUTES ));
202+ .isGreaterThan (Deadline .after (DEADLINE_IN_DAYS - 1 , TimeUnit .DAYS ));
203203 assertThat (callOptionsUsed .getDeadline ())
204- .isLessThan (Deadline .after (DEADLINE_IN_MINUTES , TimeUnit .MINUTES ));
204+ .isLessThan (Deadline .after (DEADLINE_IN_DAYS , TimeUnit .DAYS ));
205205 assertThat (callOptionsUsed .getAuthority ()).isEqualTo (CALL_OPTIONS_AUTHORITY );
206206 }
207207
0 commit comments