test/random_data.rb in avro-1.9.2 vs test/random_data.rb in avro-1.10.0

- old
+ new

@@ -1,6 +1,5 @@ -#!/usr/bin/env ruby # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the @@ -83,11 +82,13 @@ def logical_nextdata(schm, _d=0) case schm.logical_type when 'date' Avro::LogicalTypes::IntDate.decode(rand_int) - when 'timestamp-millis', 'timestamp-micros' + when 'timestamp-micros' Avro::LogicalTypes::TimestampMicros.decode(rand_long) + when 'timestamp-millis' + Avro::LogicalTypes::TimestampMillis.decode(rand_long) end end CHARPOOL = 'abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789' BYTEPOOL = '12345abcd'