Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions test/fuzz/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ inline test::fuzz::Headers toHeaders(const Http::HeaderMap& headers) {
inline TestRequestInfo fromRequestInfo(const test::fuzz::RequestInfo& request_info) {
TestRequestInfo test_request_info;
test_request_info.metadata_ = request_info.dynamic_metadata();
#ifdef __APPLE__
// Clocks don't track at nanosecond on OS X.
// libc++ clocks don't track at nanosecond on OS X.
test_request_info.start_time_ =
SystemTime(std::chrono::microseconds(request_info.start_time() / 1000));
#else
test_request_info.start_time_ = SystemTime(std::chrono::nanoseconds(request_info.start_time()));
#endif
if (request_info.has_response_code()) {
test_request_info.response_code_ = request_info.response_code().value();
}
Expand Down