Skip to content

Commit 844a2d2

Browse files
committed
Still try to cleanup service in TestSingleSvc on Windows.
1 parent a163625 commit 844a2d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/state-svc/test/integration/svc_int_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,13 @@ func (suite *SvcIntegrationTestSuite) TestStartDuplicateErrorOutput() {
157157
func (suite *SvcIntegrationTestSuite) TestSingleSvc() {
158158
suite.OnlyRunForTags(tagsuite.Service)
159159
ts := e2e.New(suite.T(), false)
160-
// TODO: CP-1268 should remove this conditional.
160+
// TODO: CP-1268 should remove this conditional and just keep the defer.
161161
if runtime.GOOS != "windows" || !condition.OnCI() {
162162
defer ts.Close()
163+
} else {
164+
defer func() {
165+
ts.SpawnCmd(ts.SvcExe, "stop") // try to stop, but do not assert success
166+
}()
163167
}
164168

165169
ts.SpawnCmdWithOpts(ts.SvcExe, e2e.OptArgs("stop"))

0 commit comments

Comments
 (0)