Skip to content

Commit 089b04d

Browse files
authored
Fix timeout of OtlpHttpExporterTestPeer and OtlpHttpLogExporterTestPeer when run under valgrind. (#1080)
1 parent 6e249fd commit 089b04d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

exporters/otlp/test/otlp_http_exporter_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ TEST_F(OtlpHttpExporterTestPeer, ExportJsonIntegrationTest)
240240
report_trace_id.assign(trace_id_hex, sizeof(trace_id_hex));
241241
}
242242

243-
ASSERT_TRUE(waitForRequests(2, old_count + 1));
243+
ASSERT_TRUE(waitForRequests(8, old_count + 1));
244244
auto check_json = received_requests_json_.back();
245245
auto resource_span = *check_json["resource_spans"].begin();
246246
auto instrumentation_library_span = *resource_span["instrumentation_library_spans"].begin();
@@ -310,7 +310,7 @@ TEST_F(OtlpHttpExporterTestPeer, ExportBinaryIntegrationTest)
310310
report_trace_id.assign(reinterpret_cast<char *>(trace_id_binary), sizeof(trace_id_binary));
311311
}
312312

313-
ASSERT_TRUE(waitForRequests(2, old_count + 1));
313+
ASSERT_TRUE(waitForRequests(8, old_count + 1));
314314

315315
auto received_trace_id = received_requests_binary_.back()
316316
.resource_spans(0)

exporters/otlp/test/otlp_http_log_exporter_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ TEST_F(OtlpHttpLogExporterTestPeer, ExportJsonIntegrationTest)
251251
report_span_id.assign(span_id_hex, sizeof(span_id_hex));
252252
}
253253

254-
ASSERT_TRUE(waitForRequests(2, old_count + 1));
254+
ASSERT_TRUE(waitForRequests(8, old_count + 1));
255255
auto check_json = received_requests_json_.back();
256256
auto resource_logs = *check_json["resource_logs"].begin();
257257
auto instrumentation_library_span = *resource_logs["instrumentation_library_logs"].begin();
@@ -339,7 +339,7 @@ TEST_F(OtlpHttpLogExporterTestPeer, ExportBinaryIntegrationTest)
339339
report_span_id.assign(reinterpret_cast<const char *>(span_id_bin), sizeof(span_id_bin));
340340
}
341341

342-
ASSERT_TRUE(waitForRequests(2, old_count + 1));
342+
ASSERT_TRUE(waitForRequests(8, old_count + 1));
343343
auto received_log =
344344
received_requests_binary_.back().resource_logs(0).instrumentation_library_logs(0).logs(0);
345345
EXPECT_EQ(received_log.trace_id(), report_trace_id);

0 commit comments

Comments
 (0)