From fe7cc4f7822792c09a8effb20f0c6733300018da Mon Sep 17 00:00:00 2001 From: mcilwain Date: Fri, 12 Jan 2018 18:09:05 -0800 Subject: [PATCH] Fix failing BillingEmailUtilsTest assertion on content type The new version of the framework that works correctly for this isn't externally available quite yet, so leave it at text/plain for the time being. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181817266 --- javatests/google/registry/billing/BillingEmailUtilsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/javatests/google/registry/billing/BillingEmailUtilsTest.java b/javatests/google/registry/billing/BillingEmailUtilsTest.java index b959c34cc..da85aaf00 100644 --- a/javatests/google/registry/billing/BillingEmailUtilsTest.java +++ b/javatests/google/registry/billing/BillingEmailUtilsTest.java @@ -109,8 +109,10 @@ public class BillingEmailUtilsTest { .isEqualTo("Attached is the 2017-10 invoice for the domain registry."); assertThat(contents.getBodyPart(1)).isInstanceOf(BodyPart.class); BodyPart attachmentPart = contents.getBodyPart(1); + // TODO(b/71631624): Fix content type in nomulus build to be "text/csv; charset=utf-8" once next + // version of framework is released. assertThat(attachmentPart.getContentType()) - .isEqualTo("text/csv; charset=utf-8; name=CRR-INV-2017-10.csv"); + .isEqualTo("text/plain; name=CRR-INV-2017-10.csv"); assertThat(attachmentPart.getContent().toString()).isEqualTo("test,data\nhello,world"); }