Skip to content

Commit e18f176

Browse files
committed
fixup! Add integration test for manual rollback after grace period
1 parent f160829 commit e18f176

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/integration/ess/upgrade_rollback_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,10 @@ func TestStandaloneUpgradeManualRollback(t *testing.T) {
460460
assert.Equal(t, cproto.State_HEALTHY, state.State)
461461
assert.Equal(collect, expectedVersion, state.Info.Version)
462462
assert.Equal(collect, expectedSnapshot, state.Info.Snapshot)
463-
assert.NoFileExists(collect, filepath.Join(startFixture.WorkDir(), "data", ".update-marker"))
463+
if runtime.GOOS != "windows" {
464+
// on windows the update marker is not removed when cleaning up
465+
assert.NoFileExists(collect, filepath.Join(startFixture.WorkDir(), "data", ".update-marker"))
466+
}
464467
}, 4*time.Minute, 10*time.Second)
465468
t.Log("elastic agent is out of grace period.")
466469
t.Logf("sending version=%s rollback=%v upgrade to agent", startFixture.Version(), true)

0 commit comments

Comments
 (0)