Skip to content

Commit 30def61

Browse files
committed
make tests pass
1 parent 72d396e commit 30def61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/logtail/log_devices/http_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
request_attempt = request_queue.deq
104104
expect(request_attempt.request).to be_kind_of(Net::HTTP::Post)
105105
decompressed_body = Zlib::GzipReader.new(StringIO.new(request_attempt.request.body)).read
106-
expect(decompressed_body).to start_with("\x92\x84\xA5level\xA4INFO\xA2dt\xBB2016-09-01T12:00:00.000000Z\xA7message\xB2test log message 1".force_encoding("ASCII-8BIT"))
106+
expect(decompressed_body).to start_with("\x92\x84\xA5level\xA4INFO\xA2dt\xBB2016-09-01T12:00:00.000000Z\xA7message\xB2test log message 1")
107107

108108
message_queue = http.instance_variable_get(:@msg_queue)
109109
expect(message_queue.size).to eq(0)
@@ -129,7 +129,7 @@
129129
stub = stub_request(:post, "https://in.logs.betterstack.com/").
130130
with do |request|
131131
decompressed_body = Zlib::GzipReader.new(StringIO.new(request.body)).read
132-
expect(decompressed_body).to start_with("\x92\x84\xA5level\xA4INFO\xA2dt\xBB2016-09-01T12:00:00.000000Z\xA7message\xB2test log message 1".force_encoding("ASCII-8BIT"))
132+
expect(decompressed_body).to start_with("\x92\x84\xA5level\xA4INFO\xA2dt\xBB2016-09-01T12:00:00.000000Z\xA7message\xB2test log message 1")
133133

134134
expect(request.headers['Authorization']).to eq('Bearer MYKEY')
135135
expect(request.headers['Content-Type']).to eq('application/msgpack')

0 commit comments

Comments
 (0)