YARN-9337. Addendum to fix compilation error due to mockito spy call
(cherry picked from commit bb37c6cb7ff2b810efd139525ad0a37937baa93c)
This commit is contained in:
parent
4fa0de9f04
commit
2fcbdf4131
@ -505,7 +505,7 @@ public void testScriptNotCalled() throws YarnException {
|
|||||||
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user