Skip to content

Commit ec38704

Browse files
committed
Raise test timeouts
1 parent 85b527f commit ec38704

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

integration-tests/src/test/java/com/datastax/oss/driver/core/tracker/RequestLoggerIT.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void should_log_successful_request() {
214214
sessionRuleRequest.session().execute(QUERY);
215215

216216
// Then
217-
verify(appender, timeout(500)).doAppend(loggingEventCaptor.capture());
217+
verify(appender, timeout(5000)).doAppend(loggingEventCaptor.capture());
218218
assertThat(loggingEventCaptor.getValue().getFormattedMessage())
219219
.contains("Success", "[0 values]", QUERY)
220220
.matches(WITH_PER_REQUEST_PREFIX);
@@ -229,7 +229,7 @@ public void should_log_successful_request_with_defaults() {
229229
sessionRuleDefaults.session().execute(QUERY);
230230

231231
// Then
232-
verify(appender, timeout(500)).doAppend(loggingEventCaptor.capture());
232+
verify(appender, timeout(5000)).doAppend(loggingEventCaptor.capture());
233233
assertThat(loggingEventCaptor.getValue().getFormattedMessage())
234234
.contains("Success", "[0 values]", QUERY)
235235
.matches(WITH_PER_REQUEST_PREFIX);
@@ -249,7 +249,7 @@ public void should_log_failed_request_with_stack_trace() {
249249
}
250250

251251
// Then
252-
verify(appender, timeout(500)).doAppend(loggingEventCaptor.capture());
252+
verify(appender, timeout(5000)).doAppend(loggingEventCaptor.capture());
253253
ILoggingEvent log = loggingEventCaptor.getValue();
254254
assertThat(log.getFormattedMessage())
255255
.contains("Error", "[0 values]", QUERY)
@@ -272,7 +272,7 @@ public void should_log_failed_request_with_stack_trace_with_defaults() {
272272
}
273273

274274
// Then
275-
verify(appender, timeout(500)).doAppend(loggingEventCaptor.capture());
275+
verify(appender, timeout(5000)).doAppend(loggingEventCaptor.capture());
276276
ILoggingEvent log = loggingEventCaptor.getValue();
277277
assertThat(log.getFormattedMessage())
278278
.contains("Error", "[0 values]", QUERY, ServerError.class.getName())
@@ -295,7 +295,7 @@ public void should_log_failed_request_without_stack_trace() {
295295
}
296296

297297
// Then
298-
verify(appender, timeout(500)).doAppend(loggingEventCaptor.capture());
298+
verify(appender, timeout(5000)).doAppend(loggingEventCaptor.capture());
299299
ILoggingEvent log = loggingEventCaptor.getValue();
300300
assertThat(log.getFormattedMessage())
301301
.contains("Error", "[0 values]", QUERY, ServerError.class.getName())
@@ -314,7 +314,7 @@ public void should_log_slow_request() {
314314
.execute(SimpleStatement.builder(QUERY).setExecutionProfileName("low-threshold").build());
315315

316316
// Then
317-
verify(appender, timeout(500)).doAppend(loggingEventCaptor.capture());
317+
verify(appender, timeout(5000)).doAppend(loggingEventCaptor.capture());
318318
assertThat(loggingEventCaptor.getValue().getFormattedMessage())
319319
.contains("Slow", "[0 values]", QUERY)
320320
.matches(WITH_PER_REQUEST_PREFIX);
@@ -359,7 +359,7 @@ public void should_log_failed_nodes_on_successful_request() {
359359
.execute(SimpleStatement.builder(QUERY).setExecutionProfileName("sorting-lbp").build());
360360

361361
// Then
362-
verify(appender, new Timeout(500, VerificationModeFactory.times(3)))
362+
verify(appender, new Timeout(5000, VerificationModeFactory.times(3)))
363363
.doAppend(loggingEventCaptor.capture());
364364
List<ILoggingEvent> events = loggingEventCaptor.getAllValues();
365365
assertThat(events.get(0).getFormattedMessage())
@@ -392,7 +392,7 @@ public void should_log_successful_nodes_on_successful_request() {
392392
sessionRuleNode.session().execute(QUERY);
393393

394394
// Then
395-
verify(appender, new Timeout(500, VerificationModeFactory.times(2)))
395+
verify(appender, new Timeout(5000, VerificationModeFactory.times(2)))
396396
.doAppend(loggingEventCaptor.capture());
397397
List<ILoggingEvent> events = loggingEventCaptor.getAllValues();
398398
assertThat(events.get(0).getFormattedMessage())

0 commit comments

Comments
 (0)