Skip to content

Commit d0ebbaf

Browse files
committed
Speed up tests
1 parent b64ce44 commit d0ebbaf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

service/test/agama/dbus/storage/manager_test.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ def parse(string)
7070
end
7171

7272
before do
73-
# Speed up tests by avoding real check of TPM presence.
73+
# Speed up tests by avoiding real check of TPM presence.
7474
allow(Y2Storage::EncryptionMethod::TPM_FDE).to receive(:possible?).and_return(true)
75+
# Speed up tests by avoiding looking up by name in the system
76+
allow(Y2Storage::BlkDevice).to receive(:find_by_any_name)
77+
7578
allow(Yast::Arch).to receive(:s390).and_return false
7679
allow(backend).to receive(:on_configure)
7780
allow(backend).to receive(:on_issues_change)

0 commit comments

Comments
 (0)