Skip to content

Conversation

shirou
Copy link
Owner

@shirou shirou commented Mar 30, 2025

Sometimes the test host/TestVirtualization on CI fails. This PR try to fix the error even if I can not reproduce the error.

@shirou shirou requested a review from Copilot March 30, 2025 01:37
Copy link

@Copilot 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 addresses a potential synchronization issue during the execution of the CI test on Windows.

  • Replaced a direct call to wg.Done() with a deferred call to ensure proper execution even in the presence of early exits due to errors.
Comments suppressed due to low confidence (1)

host/host_test.go:118

  • Using 'defer wg.Done()' ensures that the wait group counter is decremented even if the test is skipped or an error occurs, which prevents potential deadlocks during concurrent test execution.
defer wg.Done()

@shirou shirou merged commit 1e1ad22 into master Mar 31, 2025
52 checks passed
@shirou shirou deleted the feat/try_to_fix_ci_test_fail_host_virtuailization branch March 31, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant