force modules on for module tests

This commit is contained in:
Jon Ruskin 2021-06-19 20:26:56 -07:00
Родитель ec48930620
Коммит ee65f1c5a3
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -243,6 +243,14 @@ if Licensed::Shell.tool_available?("go")
end end
describe "module dependencies" do describe "module dependencies" do
before do
ENV["GO111MODULE"] = "on"
end
after do
ENV["GO111MODULE"] = nil
end
it "does not include the current package" do it "does not include the current package" do
Dir.chdir fixtures do Dir.chdir fixtures do
dep = source.dependencies.detect { |d| d.name.end_with?("test") } dep = source.dependencies.detect { |d| d.name.end_with?("test") }