imbajin commented on code in PR #245:
URL:
https://github.com/apache/incubator-hugegraph-computer/pull/245#discussion_r1203969474
##########
computer-test/src/main/java/org/apache/hugegraph/computer/suite/unit/UnitTestBase.java:
##########
@@ -73,15 +75,26 @@ protected static void clearAll() {
client().graphs().clearGraph(GRAPH, "I'm sure to delete all data");
}
+ @AfterClass
+ public static synchronized void cleanup() {
+ if (CLIENT != null) {
Review Comment:
And why need `sync` here?
##########
computer-test/src/main/java/org/apache/hugegraph/computer/suite/unit/UnitTestBase.java:
##########
@@ -73,15 +75,26 @@ protected static void clearAll() {
client().graphs().clearGraph(GRAPH, "I'm sure to delete all data");
}
+ @AfterClass
+ public static synchronized void cleanup() {
+ if (CLIENT != null) {
Review Comment:
why need `sync` here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]