From dc903bb4d897eb014a667b1234a28cafda112045 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Tue, 28 May 2019 11:52:07 -0700 Subject: [PATCH] Don't check parents in ClassLoaderCacheTest This check doesn't actually make sense anymore with the new ClassLoaderCache. In the old ClassLoaderCache, there were separate layers for the snapshots and regular jars. The test was verifying that only the snapshot layer was invalidated but now there is just one layer. --- .../src/test/scala/sbt/internal/ClassLoaderCacheTest.scala | 1 - 1 file changed, 1 deletion(-) diff --git a/main-command/src/test/scala/sbt/internal/ClassLoaderCacheTest.scala b/main-command/src/test/scala/sbt/internal/ClassLoaderCacheTest.scala index 5b9ab2326..eec114f40 100644 --- a/main-command/src/test/scala/sbt/internal/ClassLoaderCacheTest.scala +++ b/main-command/src/test/scala/sbt/internal/ClassLoaderCacheTest.scala @@ -48,7 +48,6 @@ class ClassLoaderCacheTest extends FlatSpec with Matchers { IO.setModifiedTimeOrFalse(snapshotJar, System.currentTimeMillis + 5000L) val secondLoader = cache.get(jarClassPath) assert(initLoader != secondLoader) - assert(initLoader.getParent == secondLoader.getParent) assert(cache.get(jarClassPath) == secondLoader) assert(cache.get(jarClassPath) != initLoader) }