From c45b75623771807d77151b2e5a1bae6470492a08 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 22 Aug 2022 21:31:06 +0200 Subject: [PATCH] fix: flaky tests (#1701) --- e2e/challenges_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/challenges_test.go b/e2e/challenges_test.go index ea35dc7e..55fd3f0e 100644 --- a/e2e/challenges_test.go +++ b/e2e/challenges_test.go @@ -263,8 +263,8 @@ func TestChallengeHTTP_Client_Registration_QueryRegistration(t *testing.T) { require.NotNil(t, resource) assert.Equal(t, "valid", resource.Body.Status) - assert.Regexp(t, `https://localhost:14000/list-orderz/\d+`, resource.Body.Orders) - assert.Regexp(t, `https://localhost:14000/my-account/\d+`, resource.URI) + assert.Regexp(t, `https://localhost:14000/list-orderz/[\w\d]+`, resource.Body.Orders) + assert.Regexp(t, `https://localhost:14000/my-account/[\w\d]+`, resource.URI) } func TestChallengeTLS_Client_Obtain(t *testing.T) {