File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111
1212func TestStartAllCommand (t * testing.T ) {
1313 t .Run ("StartAll" , func (t * testing.T ) {
14- th := test .SetupCommand (t )
14+ th := test .SetupCommand (t , test . WithCoordinatorEnabled () )
1515 go func () {
1616 time .Sleep (time .Millisecond * 500 )
1717 th .Cancel ()
Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ func WithServerConfig(cfg *config.Server) HelperOption {
7272 }
7373}
7474
75+ // WithCoordinatorEnabled re-enables the coordinator in test configuration.
76+ // By default, tests disable the coordinator since no coordinator is running.
77+ func WithCoordinatorEnabled () HelperOption {
78+ return WithConfigMutator (func (cfg * config.Config ) {
79+ cfg .Coordinator .Enabled = true
80+ })
81+ }
82+
7583// WithConfigMutator applies mutations to the loaded configuration after defaults are set.
7684func WithConfigMutator (mutator func (* config.Config )) HelperOption {
7785 return func (opts * Options ) {
You can’t perform that action at this time.
0 commit comments