Unstable test depending on serde's is_human_readable
Closed this issue · 1 comments
martin-g commented
apache_avro::schema::tests::avro_rs_53_uuid_with_fixed
fails sometimes with
File "/home/martin/git/apache/avro-rs/avro/src/types.rs", line 462, in apache_avro::types::Value::validate_internal
File "/home/martin/git/apache/avro-rs/avro/src/types.rs", line 606, in apache_avro::types::Value::validate_internal::{{closure}}
File "/home/martin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/iter/macros.rs", line 232, in <core::slice::iter::Iter<T> as core::iter::traits::iterator::Iterator>::fold
File "/home/martin/git/apache/avro-rs/avro/src/types.rs", line 593, in apache_avro::types::Value::validate_internal
File "/home/martin/git/apache/avro-rs/avro/src/writer.rs", line 593, in apache_avro::writer::write_value_ref_owned_resolved
File "/home/martin/git/apache/avro-rs/avro/src/writer.rs", line 497, in apache_avro::writer::GenericSingleObjectWriter::write_value_ref
File "/home/martin/git/apache/avro-rs/avro/src/writer.rs", line 555, in apache_avro::writer::SpecificSingleObjectWriter<T>::write_ref
File "/home/martin/git/apache/avro-rs/avro/src/schema.rs", line 6478, in apache_avro::schema::tests::avro_rs_53_uuid_with_fixed
File "/home/martin/git/apache/avro-rs/avro/src/schema.rs", line 6447, in apache_avro::schema::tests::avro_rs_53_uuid_with_fixed::{{closure}}
Serde calls
Lines 180 to 185 in d6a1e4f
Lines 176 to 178 in d6a1e4f
Comment::id
field of type Uuid
.
It appears the reason is serializer.is_human_readable()
: