2017-08-31 77 views
0

我试图验证我的生成okhttp库。 在最近下载的主分支上运行'mvn -X clean verify'。 我得到以下错误:mvn验证失败okhttp测试

[[email protected] surefire-reports]$ more okhttp3.ConnectionCoalescingTest.txt 
------------------------------------------------------------------------------- 
Test set: okhttp3.ConnectionCoalescingTest 
------------------------------------------------------------------------------- 
Tests run: 12, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 5.237 sec <<< FAILURE! - in okhttp3.ConnectionCoalescingTest 
prefersExistingCompatible(okhttp3.ConnectionCoalescingTest) Time elapsed: 0.598 sec <<< FAILURE! 
java.lang.AssertionError: expected:<3> but was:<2> 
    at org.junit.Assert.fail(Assert.java:88) 
    at org.junit.Assert.failNotEquals(Assert.java:834) 
    at org.junit.Assert.assertEquals(Assert.java:645) 
    at org.junit.Assert.assertEquals(Assert.java:631) 
    at okhttp3.ConnectionCoalescingTest.prefersExistingCompatible(ConnectionCoalescingTest.java:256) 
+0

如果包含更多日志,则输出中应该有更高的错误。如果可重现的话,这也可能与项目https://github.com/square/okhttp/issues的错误报告更相关。 –

+0

尝试在调试模式下运行'mvn -X clean verify' –

回答

0

确定这个固定在okhttp 3.9.0 谢谢大家对你的帮助。