Skip to content

Commit b4cf28f

Browse files
committed
test(discovery-v1): fix cleanup method to be called after the tests are done
cleanup was called after each test
1 parent cde7e20 commit b4cf28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discovery/src/test/java/com/ibm/watson/discovery/v1/DiscoveryServiceIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ public void setup() throws Exception {
154154
}
155155

156156
/** Cleanup. */
157-
@After
158157
public void cleanup() {
159158
for (String collectionId : collectionIds) {
160159
DeleteCollectionOptions deleteOptions =
@@ -200,6 +199,7 @@ public void cleanup() {
200199
}
201200
}
202201
}
202+
collectionId = null;
203203
}
204204

205205
/**

0 commit comments

Comments
 (0)