Skip to content

Commit 5e3a8c3

Browse files
authored
Merge pull request #3786 from ActiveState/mitchell/cp-1129-2
Avoid state-svc TestSingleSvc integration test timeouts on Windows.
2 parents eacb0e9 + 5460f4d commit 5e3a8c3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cmd/state-svc/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func main() {
5555
}
5656

5757
if err := events.WaitForEvents(5*time.Second, rollbar.Wait, authentication.LegacyClose, logging.Close); err != nil {
58-
logging.Warning("Failing to wait events")
58+
fmt.Fprintf(os.Stderr, "Warning: failed to wait for events")
5959
}
6060
os.Exit(exitCode)
6161
}()

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ func (suite *SvcIntegrationTestSuite) TestStartDuplicateErrorOutput() {
157157
func (suite *SvcIntegrationTestSuite) TestSingleSvc() {
158158
suite.OnlyRunForTags(tagsuite.Service)
159159
ts := e2e.New(suite.T(), false)
160-
defer ts.Close()
160+
// TODO: CP-1268 should remove this conditional.
161+
if runtime.GOOS != "windows" || !condition.OnCI() {
162+
defer ts.Close()
163+
}
161164

162165
ts.SpawnCmdWithOpts(ts.SvcExe, e2e.OptArgs("stop"))
163166
time.Sleep(2 * time.Second) // allow for some time to stop the existing available process

0 commit comments

Comments
 (0)