mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-25 22:48:27 +00:00
Fix flaky test in process context
This commit is contained in:
parent
99b143d4d0
commit
d5c11a3c86
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
type ProcessContext struct {
|
type ProcessContext struct {
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
wg *sync.WaitGroup // used to wait for components to shutdown
|
wg sync.WaitGroup // used to wait for components to shutdown
|
||||||
ctx context.Context // cancelled when Stop is called
|
ctx context.Context // cancelled when Stop is called
|
||||||
shutdown context.CancelFunc // shut down Dendrite
|
shutdown context.CancelFunc // shut down Dendrite
|
||||||
degraded map[string]struct{} // reasons why the process is degraded
|
degraded map[string]struct{} // reasons why the process is degraded
|
||||||
|
@ -21,7 +21,7 @@ func NewProcessContext() *ProcessContext {
|
||||||
return &ProcessContext{
|
return &ProcessContext{
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
shutdown: shutdown,
|
shutdown: shutdown,
|
||||||
wg: &sync.WaitGroup{},
|
wg: sync.WaitGroup{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue