-
Notifications
You must be signed in to change notification settings - Fork 628
test(server-test): enable run single unit test #2940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,6 @@ | |
| import org.apache.hugegraph.testutil.Utils; | ||
| import org.apache.hugegraph.util.Log; | ||
| import org.junit.AfterClass; | ||
| import org.junit.Assert; | ||
| import org.junit.BeforeClass; | ||
| import org.junit.runner.RunWith; | ||
| import org.junit.runners.Suite; | ||
|
|
@@ -52,11 +51,18 @@ | |
| public class CoreTestSuite { | ||
|
|
||
| private static boolean registered = false; | ||
|
imbajin marked this conversation as resolved.
|
||
| private static HugeGraph graph = null; | ||
| private static volatile HugeGraph graph = null; | ||
|
JisoLya marked this conversation as resolved.
|
||
|
|
||
|
JisoLya marked this conversation as resolved.
|
||
| public static HugeGraph graph() { | ||
| Assert.assertNotNull(graph); | ||
| //Assert.assertFalse(graph.closed()); | ||
|
JisoLya marked this conversation as resolved.
Outdated
|
||
| if (graph == null) { | ||
| synchronized (CoreTestSuite.class){ | ||
| if (graph == null) { | ||
| initEnv(); | ||
| init(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Consider whether failed initialization should be remembered to provide a clearer error message on subsequent calls, or at minimum document this behavior. Also, there's an ordering dependency: |
||
| } | ||
| } | ||
| } | ||
|
JisoLya marked this conversation as resolved.
|
||
| return graph; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.