fix: use master IP if PrometheusPushgatewayURL IP is not set in worker

This commit is contained in:
徐聪
2022-07-25 22:47:31 +08:00
parent 6818d2cd43
commit 14e157320d
3 changed files with 21 additions and 17 deletions

View File

@@ -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 {