From 5b2540eb0d759d538c1d3fcd802b7d6961b337a9 Mon Sep 17 00:00:00 2001 From: George Roman Date: Fri, 1 Jun 2018 09:51:18 +0300 Subject: Fix failing Appveyor tests --- spec/fetch_spec.lua | 3 ++- spec/fs_spec.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua index fa614349..be138b8c 100644 --- a/spec/fetch_spec.lua +++ b/spec/fetch_spec.lua @@ -2,6 +2,7 @@ local test_env = require("spec.util.test_env") local git_repo = require("spec.util.git_repo") test_env.unload_luarocks() +test_env.setup_specs() local fetch = require("luarocks.fetch") local path = require("luarocks.path") local lfs = require("lfs") @@ -11,7 +12,7 @@ local get_tmp_path = test_env.get_tmp_path describe("Luarocks fetch test #unit", function() local are_same_files = function(file1, file2) return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino - end + end describe("fetch.is_basic_protocol", function() it("checks whether the arguments represent a valid protocol and returns the result of the check", function() diff --git a/spec/fs_spec.lua b/spec/fs_spec.lua index c0679b34..2d0059b6 100644 --- a/spec/fs_spec.lua +++ b/spec/fs_spec.lua @@ -1,6 +1,7 @@ local test_env = require("spec.util.test_env") test_env.unload_luarocks() +test_env.setup_specs() local fs = require("luarocks.fs") local lfs = require("lfs") local is_win = test_env.TEST_TARGET_OS == "windows" -- cgit v1.2.3-55-g6feb