mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 00:09:37 +08:00
fix: use master IP if PrometheusPushgatewayURL IP is not set in worker
This commit is contained in:
@@ -210,6 +210,11 @@ func (b *Boomer) ParseTestCasesChan() chan bool {
|
||||
return b.masterRunner.parseTestCasesChan
|
||||
}
|
||||
|
||||
// GetMasterHost returns master IP
|
||||
func (b *Boomer) GetMasterHost() string {
|
||||
return b.masterHost
|
||||
}
|
||||
|
||||
// GetState gets worker state
|
||||
func (b *Boomer) GetState() int32 {
|
||||
switch b.mode {
|
||||
|
||||
Reference in New Issue
Block a user