Adjust Test Assertion

- Netty returns a slightly different exception on Windows,
so adjusted assertion accordingly.

Issue gh-9421
This commit is contained in:
Josh Cummings 2021-02-10 13:20:51 -07:00
parent ccb3b02888
commit 02d017abf7
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -138,7 +138,7 @@ public class NimbusReactiveJwtDecoderTests {
// @formatter:off
assertThatIllegalStateException()
.isThrownBy(() -> this.decoder.decode(this.messageReadToken).block())
.withRootCauseInstanceOf(UnknownHostException.class);
.withStackTraceContaining(UnknownHostException.class.getName());
// @formatter:on
}