Skip to content

Commit fa45bb4

Browse files
htuchdnoe
authored andcommitted
fuzz: libc++ clocks don't like nanos. (#4282)
This was breaking ClusterFuzz. Signed-off-by: Harvey Tuch <[email protected]>
1 parent 53f8944 commit fa45bb4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/fuzz/utility.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ inline test::fuzz::Headers toHeaders(const Http::HeaderMap& headers) {
3636
inline TestRequestInfo fromRequestInfo(const test::fuzz::RequestInfo& request_info) {
3737
TestRequestInfo test_request_info;
3838
test_request_info.metadata_ = request_info.dynamic_metadata();
39-
#ifdef __APPLE__
40-
// Clocks don't track at nanosecond on OS X.
39+
// libc++ clocks don't track at nanosecond on OS X.
4140
test_request_info.start_time_ =
4241
SystemTime(std::chrono::microseconds(request_info.start_time() / 1000));
43-
#else
44-
test_request_info.start_time_ = SystemTime(std::chrono::nanoseconds(request_info.start_time()));
45-
#endif
4642
if (request_info.has_response_code()) {
4743
test_request_info.response_code_ = request_info.response_code().value();
4844
}

0 commit comments

Comments
 (0)