Skip to content

Commit e6dfb91

Browse files
committed
node: shorten hostname for load testing
1 parent 034c570 commit e6dfb91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

node/cmd/guardiand/node.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,10 +1003,16 @@ func runNode(cmd *cobra.Command, args []string) {
10031003
if idx != 0 {
10041004
// try to connect to guardian-0
10051005
for {
1006+
// tilt uses this hostname format
10061007
_, err := net.LookupIP("guardian-0.guardian")
10071008
if err == nil {
10081009
break
10091010
}
1011+
// load tests use this hostname format
1012+
_, err = net.LookupIP("guardian-0")
1013+
if err == nil {
1014+
break
1015+
}
10101016
logger.Info("Error resolving guardian-0.guardian. Trying again...")
10111017
time.Sleep(time.Second)
10121018
}

0 commit comments

Comments
 (0)