mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #484] [MERGED] fix: remove the race condition merging the start/stop with other lxc tests #502
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#502
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/484
Author: @NemoDacremont
Created: 10/19/2025
Status: ✅ Merged
Merged: 10/20/2025
Merged by: @Tinyblargon
Base:
master← Head:fix/lxc-race-condition📝 Commits (1)
c76e5bffix: remove the race condition once for all by merging the start/stop test into the lxc tests📊 Changes
2 files changed (+16 additions, -46 deletions)
View changed files
📝
test/api/Lxc/lxc_create_update_delete_test.go(+16 -0)➖
test/api/Lxc/lxc_start_test.go(+0 -46)📄 Description
I figured out that despite the previous efforts to prevent this race condition, it happened to fail because of lxc template was being downloaded for the first create, update and delete test, and it was trying to download it again for the second one. Because the download operation had been sent, it skipped the download, but because it was not finished, the LXC creation failed.
I think it is not that bad to move these tests in one file and forget about this race condition
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.