Skip to content

Commit 9528b1f

Browse files
committed
fix an intermittent test failure in kubeVirtUpdatePXBlocked test
kubeVirtUpdatePXBlocked test stops the VM 2 minutes after detecting the expected failed migration. I am guessing that this 2 minutes window is sometimes too short for the operator to generate a FailedToEvict event causing intermittent failure with "Did not find FailedToEvictVM event" error. Increase the interval to 5 minutes. Signed-off-by: Neelesh Thakur <neelesh.thakur@purestorage.com>
1 parent b40bcb8 commit 9528b1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration_test/kubevirt_hyperconv_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ func unblockPXUpdate(t *testing.T, unblockerData *unblockPXUpdateData) {
15901590
func stopVMsOfFailedMigrations(t *testing.T, seen map[string]*failedMigration, testStartTime time.Time) {
15911591
// stop VMs for the failed migrations after some time
15921592
for _, migr := range seen {
1593-
if !migr.vmStopped && time.Since(migr.firstSeen) > 2*time.Minute {
1593+
if !migr.vmStopped && time.Since(migr.firstSeen) > 5*time.Minute {
15941594
stopVMForMigration(t, migr.migration)
15951595
migr.vmStopped = true
15961596
}

0 commit comments

Comments
 (0)