From 2a43b3a90d10756c4ae2cf299ffb90bb66424fb0 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 27 Oct 2014 09:26:23 -0700 Subject: [PATCH] Make TemplateBuilderImplTest less brittle. --- .../compute/domain/internal/TemplateBuilderImplTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/test/java/org/jclouds/compute/domain/internal/TemplateBuilderImplTest.java b/compute/src/test/java/org/jclouds/compute/domain/internal/TemplateBuilderImplTest.java index 3c476f6ff5..13ecc9fb5a 100644 --- a/compute/src/test/java/org/jclouds/compute/domain/internal/TemplateBuilderImplTest.java +++ b/compute/src/test/java/org/jclouds/compute/domain/internal/TemplateBuilderImplTest.java @@ -677,7 +677,7 @@ public class TemplateBuilderImplTest { fail("Expected NoSuchElementException"); } catch (NoSuchElementException e) { // make sure big data is not in the exception message - assertEquals(e.getMessage(), "no image matched predicate: Predicates.and(nullEqualToIsParentOrIsGrandparentOfCurrentLocation(),imageDescription(notDescription))"); + assertTrue(e.getMessage().length() < 1024); } verify(defaultOptions, optionsProvider, templateBuilderProvider, getImageStrategy);