Skip to content

Commit 034bece

Browse files
committed
Fix tests
1 parent 329467c commit 034bece

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

service/lib/agama/manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def on_services_status_change(&block)
231231
#
232232
# @return [Boolean]
233233
def valid?
234-
users.issues.empty? && !software.errors? && !storage.errors?
234+
users.issues.empty? && !software.errors?
235235
end
236236

237237
# Collects the logs and stores them into an archive

service/test/agama/dbus/clients/storage_test.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
# find current contact information at www.suse.com.
2121

2222
require_relative "../../../test_helper"
23-
require_relative "with_issues_examples"
24-
require_relative "with_progress_examples"
2523
require "agama/dbus/clients/storage"
2624
require "dbus"
2725

@@ -79,7 +77,4 @@
7977
subject.finish
8078
end
8179
end
82-
83-
include_examples "issues"
84-
include_examples "progress"
8580
end

service/test/agama/manager_test.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
let(:storage) do
5959
instance_double(
6060
Agama::DBus::Clients::Storage, probe: nil, install: nil, finish: nil,
61-
:product= => nil, errors?: false
61+
:product= => nil
6262
)
6363
end
6464
let(:scripts) do
@@ -220,16 +220,6 @@
220220
end
221221
end
222222

223-
context "when there are storage errors" do
224-
before do
225-
allow(storage).to receive(:errors?).and_return(true)
226-
end
227-
228-
it "returns false" do
229-
expect(subject.valid?).to eq(false)
230-
end
231-
end
232-
233223
context "when the software configuration is not valid" do
234224
before do
235225
allow(software).to receive(:errors?).and_return(true)

0 commit comments

Comments
 (0)