@@ -140,12 +140,13 @@ type EtcdProcessClusterConfig struct {
140140
141141 // Test config
142142
143- KeepDataDir bool
144- Logger * zap.Logger
145- GoFailEnabled bool
146- GoFailClientTimeout time.Duration
147- LazyFSEnabled bool
148- PeerProxy bool
143+ KeepDataDir bool
144+ Logger * zap.Logger
145+ GoFailEnabled bool
146+ GoFailClientTimeout time.Duration
147+ LazyFSEnabled bool
148+ PeerProxy bool
149+ ContinuousWatchCreation time.Duration
149150
150151 // Process config
151152
@@ -370,6 +371,12 @@ func WithPeerProxy(enabled bool) EPClusterOption {
370371 return func (c * EtcdProcessClusterConfig ) { c .PeerProxy = enabled }
371372}
372373
374+ func WithContinuousWatchCreation (interval time.Duration ) EPClusterOption {
375+ return func (c * EtcdProcessClusterConfig ) {
376+ c .ContinuousWatchCreation = interval
377+ }
378+ }
379+
373380func WithClientHTTPSeparate (enabled bool ) EPClusterOption {
374381 return func (c * EtcdProcessClusterConfig ) { c .ClientHTTPSeparate = enabled }
375382}
@@ -652,24 +659,25 @@ func (cfg *EtcdProcessClusterConfig) EtcdServerProcessConfig(tb testing.TB, i in
652659 }
653660
654661 return & EtcdServerProcessConfig {
655- lg : cfg .Logger ,
656- ExecPath : execPath ,
657- Args : args ,
658- EnvVars : envVars ,
659- TLSArgs : cfg .TLSArgs (),
660- Client : cfg .Client ,
661- DataDirPath : dataDirPath ,
662- KeepDataDir : cfg .KeepDataDir ,
663- Name : name ,
664- PeerURL : peerAdvertiseURL ,
665- ClientURL : curl ,
666- ClientHTTPURL : clientHTTPURL ,
667- MetricsURL : murl ,
668- InitialToken : cfg .ServerConfig .InitialClusterToken ,
669- GoFailPort : gofailPort ,
670- GoFailClientTimeout : cfg .GoFailClientTimeout ,
671- Proxy : proxyCfg ,
672- LazyFSEnabled : cfg .LazyFSEnabled ,
662+ lg : cfg .Logger ,
663+ ExecPath : execPath ,
664+ Args : args ,
665+ EnvVars : envVars ,
666+ TLSArgs : cfg .TLSArgs (),
667+ Client : cfg .Client ,
668+ DataDirPath : dataDirPath ,
669+ KeepDataDir : cfg .KeepDataDir ,
670+ Name : name ,
671+ PeerURL : peerAdvertiseURL ,
672+ ClientURL : curl ,
673+ ClientHTTPURL : clientHTTPURL ,
674+ MetricsURL : murl ,
675+ InitialToken : cfg .ServerConfig .InitialClusterToken ,
676+ GoFailPort : gofailPort ,
677+ GoFailClientTimeout : cfg .GoFailClientTimeout ,
678+ Proxy : proxyCfg ,
679+ LazyFSEnabled : cfg .LazyFSEnabled ,
680+ ContinuousWatchCreation : cfg .ContinuousWatchCreation ,
673681 }
674682}
675683
0 commit comments