Skip to content

Commit 8336872

Browse files
fix(loader): fix updates
1 parent 13c67ce commit 8336872

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

hugegraph-loader/src/main/java/org/apache/hugegraph/loader/HugeGraphLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public static void main(String[] args) {
113113
loader = new HugeGraphLoader(args);
114114
} catch (Throwable e) {
115115
Printer.printError("Failed to start loading", e);
116+
System.exit(1);
116117
return;
117118
}
118119

hugegraph-loader/src/test/java/org/apache/hugegraph/loader/test/functional/FileLoadTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,6 @@ public void testSourceOrTargetPrimaryValueNull() {
25772577
"are configured correctly";
25782578
Assert.assertTrue(e.getMessage().endsWith(msgSuffix));
25792579
});
2580-
25812580
List<Vertex> vertices = CLIENT.graph().listVertices();
25822581
List<Edge> edges = CLIENT.graph().listEdges();
25832582
Assert.assertEquals(7, vertices.size());

hugegraph-loader/src/test/java/org/apache/hugegraph/loader/test/functional/LoadTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,18 @@ public static void assertDateEquals(String expectDate, TimeZone expectZone, Stri
155155
* --username admin
156156
* --password pa
157157
* to the end of the original argument list before delegating to HugeGraphLoader.
158+
* <p>
159+
* <b>Note:</b> The password "pa" is a simplified test password used only for testing purposes.
160+
* It is a placeholder and <b>must be changed</b> in production environments to a secure value.
161+
* The choice of "pa" is arbitrary and intended to facilitate automated testing.
158162
* @param args the original command-line arguments passed to the program.
159163
* These arguments are extended with authentication information
160164
* before being passed to {@code HugeGraphLoader.main()}.
161165
*
162166
* @see HugeGraphLoader#main(String[])
163167
*/
164168
public static void authmain(String[] args) {
165-
ArrayList list = new ArrayList(Arrays.asList(args));
169+
ArrayList<String> list = new ArrayList<>(Arrays.asList(args));
166170
list.add("--username");
167171
list.add("admin");
168172
list.add("--password");

0 commit comments

Comments
 (0)