Skip to content

Commit 93c3f85

Browse files
author
Marcelo Vanzin
committed
Fix ClassCastException in test.
1 parent e5c682d commit 93c3f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yarn/common/src/test/scala/org/apache/spark/deploy/yarn/ClientBaseSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class ClientBaseSuite extends FunSuite {
110110

111111
val client = spy(new DummyClient(args, conf, sparkConf, yarnConf))
112112
doReturn(new Path("/")).when(client).copyRemoteFile(any(classOf[Path]),
113-
any(classOf[Path]), any(classOf[Short]), any(classOf[Boolean]))
113+
any(classOf[Path]), anyShort(), anyBoolean())
114114

115115
var tempDir = Files.createTempDir();
116116
try {

0 commit comments

Comments
 (0)