From b955bc433e6ef18d63c1f911aa6275bdd1e08f47 Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Thu, 18 Jul 2019 15:05:03 +1000 Subject: [PATCH] Hardcode PartTest's source encoding since it shouldn't change --- test/engine/rfc822-part-test.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/engine/rfc822-part-test.vala b/test/engine/rfc822-part-test.vala index 3af30ec0..b6e82e60 100644 --- a/test/engine/rfc822-part-test.vala +++ b/test/engine/rfc822-part-test.vala @@ -90,15 +90,14 @@ class Geary.RFC822.PartTest : TestCase { } private GMime.Part new_part(string? mime_type, - uint8[] body, - GMime.ContentEncoding encoding = GMime.ContentEncoding.DEFAULT) { + uint8[] body) { GMime.Part part = new GMime.Part(); if (mime_type != null) { part.set_content_type(new GMime.ContentType.from_string(mime_type)); } GMime.DataWrapper body_wrapper = new GMime.DataWrapper.with_stream( new GMime.StreamMem.with_buffer(body), - encoding + GMime.ContentEncoding.BINARY ); part.set_content_object(body_wrapper); part.encode(GMime.EncodingConstraint.7BIT);