Skip to content

Commit

Permalink
clean resources post test completion.
Browse files Browse the repository at this point in the history
Signed-off-by: gurunandan.rao@oracle.com <gurunandan.rao@oracle.com>
  • Loading branch information
gurunrao authored and scottmarlow committed Mar 3, 2021
1 parent 0aeaa3b commit d10981b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -232,8 +232,6 @@ public void test2() throws Fault {
// END UNIT TEST 6:

folder.fetch(msgs, fp);
folder.close(false);
store.close();

checkStatus();

Expand Down Expand Up @@ -318,6 +316,8 @@ public void checkStatus() {
public void cleanup() throws Fault {
try {
logMsg("Cleanup ;");
folder.close(false);
store.close();
} catch (Exception e) {
logErr("An error occurred in cleanup!", e);
}
Expand Down

0 comments on commit d10981b

Please sign in to comment.