Skip to content
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

ubuntui下执行quick-start.sh 发生Tests错误关于NetUtilTest #580

Open
docXU opened this issue Oct 25, 2017 · 0 comments
Open

ubuntui下执行quick-start.sh 发生Tests错误关于NetUtilTest #580

docXU opened this issue Oct 25, 2017 · 0 comments

Comments

@docXU
Copy link

docXU commented Oct 25, 2017

我在ubuntu下编译modules时发生了NetiUtilTest错误,输出提示我本地localhost不等于127.0.0.1 ,我直接注释了NetUtilTest下的两行断言:

@Test public void localhost() { //assertThat(NetUtil.getLocalHost()).isNotEqualTo("127.0.0.1"); //assertThat(NetUtil.getLocalAddress().getHostAddress()).isNotEqualTo("127.0.0.1"); }
这样系统能成功启动,可以正常进入http://localhost:8080/ 页面。但如此会有什么后果吗?

具体的错误日记:
`
Running org.springside.modules.utils.time.ClockUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.springside.modules.utils.time.ClockUtilTest
Running org.springside.modules.utils.time.CachingDatFormatterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.springside.modules.utils.time.CachingDatFormatterTest
Running org.springside.modules.utils.time.DateUtilTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in org.springside.modules.utils.time.DateUtilTest
Running org.springside.modules.utils.time.DateFormatUtilTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in org.springside.modules.utils.time.DateFormatUtilTest
Running org.springside.modules.test.log.LogbackListAppenderTest
15:07:26.037 [main] WARN o.s.m.t.log.LogbackListAppenderTest - Hello
15:07:26.037 [main] WARN o.s.m.t.log.LogbackListAppenderTest - World
15:07:26.038 [main] WARN o.s.m.t.log.LogbackListAppenderTest - Hello
15:07:26.038 [main] WARN o.s.m.t.log.LogbackListAppenderTest - Hello
15:07:26.038 [main] WARN o.s.m.t.log.LogbackListAppenderTest - Hello
15:07:26.038 [main] WARN o.s.m.t.log.LogbackListAppenderTest - Hello
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.springside.modules.test.log.LogbackListAppenderTest

Results :

Failed tests:
NetUtilTest.localhost:19
Expecting:
<"127.0.0.1">
not to be equal to:
<"127.0.0.1">

Tests run: 164, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Springside :: Module :: Utils ...................... FAILURE [01:00 min]
[INFO] Springside :: Module :: Core ....................... SKIPPED
[INFO] Springside :: Module :: Metrics .................... SKIPPED
[INFO] Springside :: Module ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:00 min
[INFO] Finished at: 2017-10-25T15:07:26+08:00
[INFO] Final Memory: 23M/333M
[INFO] -----------------------------------------
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant