Skip to content

Commit

Permalink
Update flakey test to read utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Feb 18, 2022
1 parent 0529c54 commit c2f6dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gems/aws-eventstream/spec/decoder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c2f6dd9

Please sign in to comment.