From f445d414978a5defdfb3bc1ad750804ccb1a80f4 Mon Sep 17 00:00:00 2001 From: Jerzy Szczepkowski Date: Thu, 9 Jun 2016 14:34:50 +0200 Subject: [PATCH] Fixed GetGroupNodes method: wrong regexp function was used. Fixed GetGroupNodes method: wrong regexp function was used. Should fix flakiness of "should add node to the particular mig" e2e test. --- test/e2e/resize_nodes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/resize_nodes.go b/test/e2e/resize_nodes.go index db183c938a4..80d98dd885a 100644 --- a/test/e2e/resize_nodes.go +++ b/test/e2e/resize_nodes.go @@ -87,7 +87,7 @@ func GetGroupNodes(group string) ([]string, error) { return nil, err } re := regexp.MustCompile(".*RUNNING") - lines := re.FindStringSubmatch(string(output)) + lines := re.FindAllString(string(output), -1) for i, line := range lines { lines[i] = line[:strings.Index(line, " ")] }