Skip to content

Commit

Permalink
Updated unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 10, 2024
1 parent 23a4e01 commit 90c13f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion service/test/agama/dbus/storage/manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@
expect(volume.mount_path).to eq("/")
expect(volume.auto_size).to eq(false)
expect(volume.min_size.to_i).to eq(5 * (1024**3))
expect(volume.max_size.to_i).to eq(20 * (1024**3))
# missing maximum value means unlimited size
expect(volume.max_size.to_i).to eq(-1)
expect(volume.btrfs.snapshots).to eq(false)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@
expect(volume.fs_type).to eq(Y2Storage::Filesystems::Type::BTRFS)
expect(volume.auto_size?).to eq(false)
expect(volume.min_size.to_i).to eq(5 * (1024**3))
expect(volume.max_size.to_i).to eq(10 * (1024**3))
# missing maximum value means unlimited size
expect(volume.max_size.to_i).to eq(-1)
expect(volume.btrfs.snapshots?).to eq(false)
end
end
Expand Down

0 comments on commit 90c13f2

Please sign in to comment.