一切运行正常,直到我的VM(Ubuntu 17.10,VM Player)在运行集成测试时崩溃(我运行了很多后台任务)。现在单元测试卡在maven和gradle上。但是,当我在另一台机器上克隆相同的代码时,一切都很顺利(相同的分支)。到目前为止我尝试了什么: -
Project Test Debug [Remote Java Application] Java HotSpot(TM) 64-Bit Server VM [localhost:5005] Thread [main] (Running) Thread [SUITE-ConfigReaderTest-seed#[2282DD601D0CC6CD]] (Suspended) Native.invokeLong(Function, long, int, Object[]) line: not available [native method] Function.invoke(Object[], Class<?>, boolean, int) line: 421 Function.invoke(Method, Class<?>[], Class<?>, Object[], Map<String,?>) line: 354 Library$Handler.invoke(Object, Method, Object[]) line: 244 $Proxy39.syscall(NativeLong, Object[]) line: not available SystemCallFilter.linux_syscall(long, Object...) line: 257 SystemCallFilter.linuxImpl() line: 280 SystemCallFilter.init(Path) line: 639 JNANatives.tryInstallSystemCallFilter(Path) line: 258 Natives.tryInstallSystemCallFilter(Path) line: 113 Bootstrap.initializeNatives(Path, boolean, boolean, boolean) line: 111 BootstrapForTesting.<clinit>() line: 79 ESTestCase.<clinit>() line: 175 Class<T>.forName0(String, boolean, ClassLoader, Class<?>) line: not available [native method] Class<T>.forName(String, boolean, ClassLoader) line: 348 RandomizedRunner$2.run() line: 592
与此同时,所有其他机器上的一切正常。 但是在这台机器上,无论我选择哪个项目,Maven和Gradle总是卡在单元测试中(没有测试实际执行)。