From c2f6dd93bb3291763605a4c88ab46b25bec83149 Mon Sep 17 00:00:00 2001 From: Matt Muller Date: Fri, 18 Feb 2022 11:40:40 -0800 Subject: [PATCH] Update flakey test to read utf8 --- gems/aws-eventstream/spec/decoder_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gems/aws-eventstream/spec/decoder_spec.rb b/gems/aws-eventstream/spec/decoder_spec.rb index 72fddca8e83..5ef60dd85e2 100644 --- a/gems/aws-eventstream/spec/decoder_spec.rb +++ b/gems/aws-eventstream/spec/decoder_spec.rb @@ -72,7 +72,7 @@ module EventStream it '#decode_chunk buffers partial prelude message' do file = Dir.glob(File.expand_path('../fixtures/encoded/positive/*', __FILE__)).first - data = File.read(file) + data = File.open(file, "r:UTF-8", &:read) first_part = data[0..3] second_part = data[4..-1] decoder = Decoder.new(format: false)