lib/opentelemetry/common/test_helpers.rb in opentelemetry-common-0.17.0 vs lib/opentelemetry/common/test_helpers.rb in opentelemetry-common-0.18.0

- old
+ new

@@ -11,5 +11,9 @@ yield ensure env_to_reset.each_pair { |k, v| ENV[k] = v } keys_to_delete.each { |k| ENV.delete(k) } end + +def exportable_timestamp(time = Time.now) + (time.to_r * 1_000_000_000).to_i +end