diff --git a/dgraphtest/local_cluster.go b/dgraphtest/local_cluster.go index e0e5c113312..70797afc2c3 100644 --- a/dgraphtest/local_cluster.go +++ b/dgraphtest/local_cluster.go @@ -782,8 +782,9 @@ func (c *LocalCluster) checkDgraphVersion(containerID string) error { return errors.Wrapf(err, "error during checkDgraphVersion for container [%v]", containerID) } - // During in-place upgrade, container remains same but logs have version string twice - once for old version, once for new. - // Want new version string. Look bottom-up using LastIndex to get latest version's string. + // During in-place upgrade, container remains same but logs have version string twice + // once for old version, once for new. Want new version string. Look bottom-up using + // LastIndex to get latest version's string. index := strings.LastIndex(contLogs, "Commit SHA-1 : ") running := strings.Fields(contLogs[index : index+70])[3] // 70 is arbitrary chash, err := getHash(c.GetVersion())