mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix unwrapping of captured PrintStream in test support's OutputCapture
See gh-22214
This commit is contained in:
parent
4301580095
commit
75a64bd901
@ -194,7 +194,7 @@ class OutputCapture implements CapturedOutput {
|
||||
|
||||
private static PrintStream getSystemStream(PrintStream printStream) {
|
||||
while (printStream instanceof PrintStreamCapture) {
|
||||
return ((PrintStreamCapture) printStream).getParent();
|
||||
printStream = ((PrintStreamCapture) printStream).getParent();
|
||||
}
|
||||
return printStream;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user