Fix event service startup error handling to ignore already started state
- Update the error handling in the event service startup to allow for the case where the service is already running, preventing unnecessary test failures.
This commit is contained in:
parent
af981dc0b0
commit
7fa54c50f3
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ func Prepare(t *testing.T, cfg config.Config, opts ...interface{}) {
|
|||
startRuntime(t, cfg)
|
||||
|
||||
// Start event service (trace handler registered via blank import above)
|
||||
if err := event.Start(); err != nil {
|
||||
if err := event.Start(); err != nil && err != event.ErrAlreadyStart {
|
||||
t.Fatalf("Failed to start event service: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue