You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// with due to other integration tests not always waiting for state-svc to have fully shut down before running the next test
185
184
suite.Fail(fmt.Sprintf("spawning multiple state processes should only result in one more state-svc process at most, newCount: %d, oldCount: %d", newCount, oldCount))
186
185
}
186
+
187
+
// ts.Close() has logic to stop state-svc if ts.SvcExe exists.
188
+
// It does this by invoking `state-svc stop`.
189
+
// However, in the event we end up with less services than anticipated, `state-svc stop` will
190
+
// fail with a non-zero exit code because there is no service to stop, and this will cause a
191
+
// timeout error in ts.Close().
192
+
// In order to prevent this, change ts.SvcExe to something that doesn't exist.
193
+
ifnewCount<oldCount+1 {
194
+
ts.SvcExe="does-not-exist"
195
+
}
187
196
}
188
197
189
198
func (suite*SvcIntegrationTestSuite) GetNumStateSvcProcesses() int {
0 commit comments