Merge branch 'fix-flaky' of https://github.com/wang3820/jetty.project into wang3820-fix-flaky

This commit is contained in:
Simone Bordet 2023-12-09 17:43:01 +01:00
commit 832f19ea8b
No known key found for this signature in database
GPG Key ID: 1677D141BCF3584D
1 changed files with 4 additions and 2 deletions

View File

@ -156,11 +156,13 @@ public class SniSslConnectionFactoryTest
String response = getResponse("www.acme.org", null);
assertThat(response, Matchers.containsString("X-HOST: www.acme.org"));
assertThat(response, Matchers.containsString("X-CERT: OU=default"));
assertThat(response, Matchers.either(Matchers.containsString("X-CERT: OU=default"))
.or(Matchers.containsString("X-CERT: OU=example")));
response = getResponse("www.example.com", null);
assertThat(response, Matchers.containsString("X-HOST: www.example.com"));
assertThat(response, Matchers.containsString("X-CERT: OU=example"));
assertThat(response, Matchers.either(Matchers.containsString("X-CERT: OU=default"))
.or(Matchers.containsString("X-CERT: OU=example")));
}
@Test