Skip to content

Commit fea2490

Browse files
committed
rm one unit test
1 parent e1a9f2e commit fea2490

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUtilsSuite.scala

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,6 @@ class HiveUtilsSuite extends QueryTest with SQLTestUtils with TestHiveSingleton
4848
}
4949
}
5050

51-
test("ChildFirstURLClassLoader's parent is null") {
52-
val conf = new SparkConf
53-
val contextClassLoader = Thread.currentThread().getContextClassLoader
54-
val loader = new FakeChildFirstURLClassLoader(Array(), contextClassLoader)
55-
try {
56-
Thread.currentThread().setContextClassLoader(loader)
57-
intercept[IllegalArgumentException](
58-
HiveUtils.newClientForMetadata(
59-
conf,
60-
SparkHadoopUtil.newConfiguration(conf),
61-
HiveUtils.newTemporaryConfiguration(useInMemoryDerby = true)))
62-
} finally {
63-
Thread.currentThread().setContextClassLoader(contextClassLoader)
64-
}
65-
}
66-
6751
test("ChildFirstURLClassLoader's parent is null, get spark classloader instead") {
6852
val conf = new SparkConf
6953
val contextClassLoader = Thread.currentThread().getContextClassLoader
@@ -79,9 +63,3 @@ class HiveUtilsSuite extends QueryTest with SQLTestUtils with TestHiveSingleton
7963
}
8064
}
8165
}
82-
83-
/**
84-
* A Fake [[ChildFirstURLClassLoader]] used for test
85-
*/
86-
private[spark] class FakeChildFirstURLClassLoader(urls: Array[URL], parent: ClassLoader)
87-
extends MutableURLClassLoader(urls, null)

0 commit comments

Comments
 (0)