Skip to content

Commit e43d14b

Browse files
authoredMar 18, 2025··
Fix flaky CBOR test (#718)
1 parent 4c48d1e commit e43d14b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/CborTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ static int s_decode_timestamp_helper(Cbor::CborDecoder &decoder, std::chrono::sy
184184
{
185185
double double_val = decoder.PopNextFloatVal().value();
186186
std::chrono::duration<double, std::chrono::seconds::period> timestamp(double_val);
187-
outTimePoint =
188-
std::chrono::system_clock::time_point(std::chrono::duration_cast<std::chrono::milliseconds>(timestamp));
187+
outTimePoint = std::chrono::system_clock::time_point(
188+
std::chrono::duration_cast<std::chrono::system_clock::duration>(timestamp));
189189
return AWS_OP_SUCCESS;
190190
}
191191
default:

0 commit comments

Comments
 (0)
Please sign in to comment.