diff --git a/test/package/package-install-dependencies.c b/test/package/package-install-dependencies.c index 0904917d..098d4e45 100644 --- a/test/package/package-install-dependencies.c +++ b/test/package/package-install-dependencies.c @@ -1,5 +1,6 @@ #include "clib-package.h" +#include "clib-cache.h" #include "describe/describe.h" #include "fs/fs.h" #include "rimraf/rimraf.h" @@ -12,6 +13,9 @@ int main() { .force = 1, }); + clib_cache_init(100); + rimraf(clib_cache_dir()); + describe("clib_package_install_dependencies") { it("should return -1 when given a bad package") { assert(-1 == clib_package_install_dependencies(NULL, "./deps", 0)); diff --git a/test/package/package-install-dev-dependencies.c b/test/package/package-install-dev-dependencies.c index d23bab78..5c7517e0 100644 --- a/test/package/package-install-dev-dependencies.c +++ b/test/package/package-install-dev-dependencies.c @@ -1,5 +1,6 @@ #include "clib-package.h" +#include "clib-cache.h" #include "describe/describe.h" #include "fs/fs.h" #include "rimraf/rimraf.h" @@ -12,6 +13,9 @@ int main() { .force = 1, }); + clib_cache_init(100); + rimraf(clib_cache_dir()); + describe("clib_package_install_development") { it("should return -1 when given a bad package") { assert(-1 == clib_package_install_development(NULL, "./deps", 0)); diff --git a/test/package/package-install.c b/test/package/package-install.c index 1ef464f9..3cae4745 100644 --- a/test/package/package-install.c +++ b/test/package/package-install.c @@ -1,5 +1,5 @@ -#include "clib-package.h" +#include "clib-cache.h" #include "describe/describe.h" #include "fs/fs.h" #include "rimraf/rimraf.h" @@ -13,6 +13,9 @@ int main() { .force = 1, }); + clib_cache_init(100); + rimraf(clib_cache_dir()); + describe("clib_package_install") { it("should return -1 when given a bad package") { assert(-1 == clib_package_install(NULL, "./deps", 0));