From 8b7507fe214e88b752e5593a3f6df68480ef1c11 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 20 Aug 2022 14:13:12 -0600 Subject: [PATCH] Remove variable portion of image path from test --- .../java/org/jenkinsci/plugins/badge/StatusImageTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/jenkinsci/plugins/badge/StatusImageTest.java b/src/test/java/org/jenkinsci/plugins/badge/StatusImageTest.java index 1c011c5f4..b7f54a46d 100644 --- a/src/test/java/org/jenkinsci/plugins/badge/StatusImageTest.java +++ b/src/test/java/org/jenkinsci/plugins/badge/StatusImageTest.java @@ -187,7 +187,7 @@ public void testConstructor() throws Exception { @Test public void testConstructorPassingBuild32x32BallStyle() throws Exception { - String fileName = "/jenkins/static/3fcf04bd/images/32x32/blue.png"; + String fileName = "images/32x32/blue.png"; StatusImage statusImage = new StatusImage(fileName); assertThat(statusImage.getEtag(), containsString(fileName)); // assertThat(statusImage.getContentType(), is(PNG_CONTENT_TYPE)); @@ -196,7 +196,7 @@ public void testConstructorPassingBuild32x32BallStyle() throws Exception { @Test public void testConstructorPassingBuild16x16BallStyle() throws Exception { - String fileName = "/jenkins/static/3fcf04bd/images/16x16/blue.png"; + String fileName = "images/16x16/blue.png"; StatusImage statusImage = new StatusImage(fileName); assertThat(statusImage.getEtag(), containsString(fileName)); // assertThat(statusImage.getContentType(), is(PNG_CONTENT_TYPE));