From b10b48418520ae798e539500fc598c6cbdf06820 Mon Sep 17 00:00:00 2001
From: Jujube Orange <13631-x-JOrang@users.noreply.gitlab.inria.fr>
Date: Mon, 5 Sep 2022 11:12:11 +0000
Subject: [PATCH] test: change format of expected log message after library
 upgrade

---
 .../stopc/submissioncode/controller/VerifyControllerTest.kt     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/kotlin/fr/gouv/stopc/submissioncode/controller/VerifyControllerTest.kt b/src/test/kotlin/fr/gouv/stopc/submissioncode/controller/VerifyControllerTest.kt
index 129f8477..757088db 100644
--- a/src/test/kotlin/fr/gouv/stopc/submissioncode/controller/VerifyControllerTest.kt
+++ b/src/test/kotlin/fr/gouv/stopc/submissioncode/controller/VerifyControllerTest.kt
@@ -388,7 +388,7 @@ class VerifyControllerTest {
                 .body("valid", equalTo(false))
 
             assertThat(output.all)
-                .containsPattern("JWT could not be parsed: Invalid JWS header: Invalid JSON: Unexpected token [^ ]+ at position 5., aaaaaaa.aaaaaaa.aaaaaaa")
+                .contains("JWT could not be parsed: Invalid JWS header: Invalid JSON: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path \$, aaaaaaa.aaaaaaa.aaaaaaa")
         }
 
         @Test
-- 
GitLab