Skip to content

Commit

Permalink
Revert "Ensure that TestResourceManager is only closed once"
Browse files Browse the repository at this point in the history
This reverts commit 25c7a2a.
  • Loading branch information
stuartwdouglas committed Jun 24, 2020
1 parent a002dcf commit 13b8c6e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public Object resolveParameter(ParameterContext parameterContext, ExtensionConte
}
}

class ExtensionState {
class ExtensionState implements ExtensionContext.Store.CloseableResource {

private final Closeable testResourceManager;
private final Closeable resource;
Expand All @@ -685,6 +685,7 @@ class ExtensionState {
this.resource = resource;
}

@Override
public void close() throws Throwable {
try {
resource.close();
Expand Down

0 comments on commit 13b8c6e

Please sign in to comment.