Skip to content

Conversation

@frankiejol
Copy link
Member

We can get free memory from the Virtual Manager and get rid of this dependency used only for this test.

@frankiejol frankiejol added this to the v2.4.3 milestone Oct 6, 2025
@frankiejol frankiejol self-assigned this Oct 6, 2025
@frankiejol frankiejol requested a review from Copilot October 28, 2025 09:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors a test to eliminate the Sys::Statistics::Linux dependency by using the Virtual Manager's built-in free_memory method instead. This simplifies the codebase by removing an external dependency that was only used in this single test file.

Key Changes:

  • Replaced Sys::Statistics::Linux with VM's native free_memory() method
  • Simplified domain creation logic by removing redundant error handling
  • Updated _check_free_memory() to accept a VM parameter

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
t/55_freemem.t Refactored to use VM's free_memory() method and removed Sys::Statistics::Linux dependency; simplified test logic
Makefile.PL Removed Sys::Statistics::Linux from dependencies list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@frankiejol frankiejol merged commit c4ae73f into main Oct 28, 2025
1 check passed
@frankiejol frankiejol deleted the refactor/test_freemem branch October 28, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants