Skip to content

Commit 3f636c2

Browse files
authored
Merge pull request #637 from smart-coding/develop
optimise the main code and correct the test code
2 parents 49b41e9 + b70b0d8 commit 3f636c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ dependencies {
8989

9090
compile group: 'com.beust', name: 'jcommander', version: '1.72'
9191

92-
compile group: 'junit', name: 'junit', version: '4.8.1'
92+
compile group: 'junit', name: 'junit', version: '4.12'
9393

9494
compile group: 'net.jcip', name: 'jcip-annotations', version: '1.0'
9595

src/main/java/org/tron/program/FullNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public static void main(String[] args) throws InterruptedException {
2222
Args.setParam(args, Constant.TESTNET_CONF);
2323
Args cfgArgs = Args.getInstance();
2424

25-
ApplicationContext context = new AnnotationConfigApplicationContext(DefaultConfig.class);
26-
2725
if (cfgArgs.isHelp()) {
2826
logger.info("Here is the help message.");
2927
return;
3028
}
29+
30+
ApplicationContext context = new AnnotationConfigApplicationContext(DefaultConfig.class);
3131
Application appT = ApplicationFactory.create(context);
3232
shutdown(appT);
3333
//appT.init(cfgArgs);

0 commit comments

Comments
 (0)