1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Test fix.

This commit is contained in:
Cedric Beust 2016-01-02 14:45:26 -08:00
parent 79d3d5faa5
commit 4a65177d34

View file

@ -99,10 +99,12 @@ public class DownloadTest @Inject constructor(
@Test @Test
public fun shouldFindLocalJarNoVersion() { public fun shouldFindLocalJarNoVersion() {
MavenDependency.create("$idNoVersion$version") val dep = MavenDependency.create("$idNoVersion$version")
val dep = depFactory.create(idNoVersion, executor, localFirst = false)
val future = dep.jarFile val future = dep.jarFile
val file = future.get() future.get().delete()
val dep2 = MavenDependency.create("$idNoVersion$version")
val file = dep2.jarFile.get()
Assert.assertNotNull(file) Assert.assertNotNull(file)
Assert.assertTrue(file.exists(), "Should find $file") Assert.assertTrue(file.exists(), "Should find $file")
} }