This is an automated email from the ASF dual-hosted git repository.

snemeth pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 2fcbdf4  YARN-9337. Addendum to fix compilation error due to mockito 
spy call
2fcbdf4 is described below

commit 2fcbdf4131ec21e785a31c6ac13bf05e6c6a3007
Author: Szilard Nemeth <szilard.nemet...@gmail.com>
AuthorDate: Sat Jul 13 00:42:14 2019 +0200

    YARN-9337. Addendum to fix compilation error due to mockito spy call
    
    (cherry picked from commit bb37c6cb7ff2b810efd139525ad0a37937baa93c)
---
 .../containermanager/resourceplugin/gpu/TestGpuDiscoverer.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/gpu/TestGpuDiscoverer.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/gpu/TestGpuDiscoverer.java
index a70e668..f0f100c 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/gpu/TestGpuDiscoverer.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/gpu/TestGpuDiscoverer.java
@@ -505,7 +505,7 @@ public class TestGpuDiscoverer {
     Configuration conf = new Configuration();
     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.getGpusUsableByYarn();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to