zrlw edited a comment on issue #9079: URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950165690
单元测试也存在类似的问题。github构建默认方式是并行执行UT,当测试类A结束后github的main线程会立即启动测试类B,但是测试A的全局资源可能还在销毁过程中,此时测试类B使用全局资源就会出现各种问题。 比如 #8954 用了GlobalResourcesRepository的线程池之后的github单元测试结果这样: ``` Error: Failures: Error: DefaultFutureTest.interruptSend:158 expected: <null> but was: <org.apache.dubbo.remoting.exchange.support.DefaultFuture@b7a74ac[Not completed]> Error: CloseTimerTaskTest.testClose:70 expected: <true> but was: <false> Error: HeartBeatTaskTest.testHeartBeat:74 expected: <true> but was: <false> Error: ReconnectTimerTaskTest.testReconnect:73 expected: <true> but was: <false> ``` 为了支持全局资源管理,我们可能需要将单元测试和集成测试的执行模式改为串行。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
