From 5653b2f479fb7e9f65430616991b5ce48ed057d1 Mon Sep 17 00:00:00 2001 From: mmuller Date: Fri, 11 Aug 2017 07:08:48 -0700 Subject: [PATCH] Fix method call that requires it's arg checked Fix a verification call to a method that requires it's arg checked that is breaking in the FOSS build. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=164974785 --- javatests/google/registry/rde/imports/RdeImportUtilsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/javatests/google/registry/rde/imports/RdeImportUtilsTest.java b/javatests/google/registry/rde/imports/RdeImportUtilsTest.java index 27203ebb0..935401865 100644 --- a/javatests/google/registry/rde/imports/RdeImportUtilsTest.java +++ b/javatests/google/registry/rde/imports/RdeImportUtilsTest.java @@ -301,7 +301,9 @@ public class RdeImportUtilsTest extends ShardableTestCase { xmlInput = DEPOSIT_XML.openBufferedStream(); when(gcsUtils.openInputStream(any(GcsFilename.class))).thenReturn(xmlInput); rdeImportUtils.validateEscrowFileForImport("valid-deposit-file.xml"); - verify(gcsUtils).openInputStream(new GcsFilename("import-bucket", "valid-deposit-file.xml")); + // stored to avoid an error in FOSS build, marked "CheckReturnValue" + InputStream unusedResult = verify(gcsUtils).openInputStream( + new GcsFilename("import-bucket", "valid-deposit-file.xml")); } /** Verifies thrown error when tld in escrow file is not in the registry */