YARN-9337. Addendum to fix compilation error due to mockito spy call

This commit is contained in:
Szilard Nemeth 2019-07-13 00:42:14 +02:00
parent 2a1451aa0e
commit bb37c6cb7f
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ public class TestGpuDiscoverer {
Configuration conf = new Configuration(); Configuration conf = new Configuration();
conf.set(YarnConfiguration.NM_GPU_ALLOWED_DEVICES, "0:1,2:3"); conf.set(YarnConfiguration.NM_GPU_ALLOWED_DEVICES, "0:1,2:3");
GpuDiscoverer gpuSpy = spy(GpuDiscoverer.class); GpuDiscoverer gpuSpy = spy(new GpuDiscoverer());
gpuSpy.initialize(conf); gpuSpy.initialize(conf);
gpuSpy.getGpusUsableByYarn(); gpuSpy.getGpusUsableByYarn();