Skip to content

Commit 726b284

Browse files
committed
Test using an intermediate.
1 parent 1d6c0e7 commit 726b284

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/github/fge/jackson/JsonNodeReaderTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public void streamIsClosedOnRead()
5151
throws IOException
5252
{
5353
final Supplier<InputStream> supplier = provideInputStream("[]");
54-
final InputStream in = spy(supplier.get());
54+
InputStream inOriginal = supplier.get();
55+
final InputStream in = spy(inOriginal);
5556
final JsonNode node = new JsonNodeReader().fromInputStream(in);
5657
verify(in).close();
5758
assertEquals(node, new ObjectMapper().readTree(supplier.get()));

0 commit comments

Comments
 (0)