Only patch fake_ftp when running tests

The fake_ftp patches should only be applied when running tests. Since
the library is a development dependency only, it will not be available
for loading from a release.
This commit is contained in:
Chris Roberts 2022-08-02 10:44:07 -07:00
parent 8e83537f7d
commit d31f9a59a5
2 changed files with 3 additions and 3 deletions

View File

@ -18,9 +18,6 @@ end
# Add our patches to net-ssh
require "vagrant/patches/net-ssh"
# Add our patches to fake_ftp
require "vagrant/patches/fake_ftp"
require "optparse"
module Vagrant

View File

@ -10,6 +10,9 @@ require "rspec/its"
require "vagrant"
require "vagrant/util/platform"
# Include patches for fake ftp
require "vagrant/patches/fake_ftp"
# Add the test directory to the load path
$:.unshift File.expand_path("../../", __FILE__)