summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeal Jagannatha <zealjagannatha@gmail.com>2017-11-20 10:47:04 -0800
committerZeal Jagannatha <zealjagannatha@gmail.com>2017-11-20 10:47:04 -0800
commite3229973f96fe0920567558404b4dabde692c428 (patch)
tree485b75cbab6eaf9b7126e2d0e2f413dc2ca1acac
parent71163c9a3b8169c5b04107f097abf28c8e88834c (diff)
downloadohai-e3229973f96fe0920567558404b4dabde692c428.tar.gz
Removed mock for File.exists? in nspawn spec
Signed-off-by: Zeal Jagannatha <zealjagannatha@gmail.com>
-rw-r--r--spec/unit/plugins/linux/virtualization_spec.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/unit/plugins/linux/virtualization_spec.rb b/spec/unit/plugins/linux/virtualization_spec.rb
index 381c271d..972550b0 100644
--- a/spec/unit/plugins/linux/virtualization_spec.rb
+++ b/spec/unit/plugins/linux/virtualization_spec.rb
@@ -631,7 +631,6 @@ CGROUP
describe "when we are checking for systemd-nspawn" do
it "sets nspawn guest if /proc/1/environ has nspawn string in it" do
allow(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true)
- allow(File).to receive(:exist?).with("/proc/1/environ").and_return(false)
one_environ = "container=systemd-nspawn_ttys=/dev/pts/0 /dev/pts/1 /dev/pts/2 /dev/pts/3".chomp
allow(File).to receive(:read).with("/proc/1/environ").and_return(one_environ)
allow(File).to receive(:read).with("/proc/self/cgroup").and_return("")