Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/state-svc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
}

if err := events.WaitForEvents(5*time.Second, rollbar.Wait, authentication.LegacyClose, logging.Close); err != nil {
fmt.Fprintf(os.Stderr, "Warning: failed to wait for events")
//fmt.Fprintf(os.Stderr, "Warning: failed to wait for events")
}
os.Exit(exitCode)
}()
Expand Down
10 changes: 8 additions & 2 deletions cmd/state-svc/test/integration/svc_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,15 @@ func (suite *SvcIntegrationTestSuite) TestStartDuplicateErrorOutput() {
func (suite *SvcIntegrationTestSuite) TestSingleSvc() {
suite.OnlyRunForTags(tagsuite.Service)
ts := e2e.New(suite.T(), false)
// TODO: CP-1268 should remove this conditional.
if runtime.GOOS != "windows" || !condition.OnCI() {
// TODO: CP-1268 should remove this conditional and just keep the defer.
//if runtime.GOOS != "windows" || !condition.OnCI() {
defer ts.Close()
//} else {
// defer func() {
// cp := ts.SpawnCmd(ts.SvcExe, "stop")
// time.Sleep(500 * time.Millisecond)
// cp.SendCtrlC() // if this ends up as a foreground process, then try to halt it
// }()
}

ts.SpawnCmdWithOpts(ts.SvcExe, e2e.OptArgs("stop"))
Expand Down
Loading