mirror of https://github.com/knative/func.git
test: update regex to match new 'Function running on' output format
Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
This commit is contained in:
parent
b77a031a5a
commit
c7af0e2a24
|
@ -43,7 +43,7 @@ func TestFunctionRunWithoutContainer(t *testing.T) {
|
||||||
funcPort, attempts := "", 0
|
funcPort, attempts := "", 0
|
||||||
for funcPort == "" && attempts < 30 { // 15 secs
|
for funcPort == "" && attempts < 30 { // 15 secs
|
||||||
t.Logf("----Function Output:\n%v", stdout.String())
|
t.Logf("----Function Output:\n%v", stdout.String())
|
||||||
matches := regexp.MustCompile("Running on host port (.*)").FindStringSubmatch(stdout.String())
|
matches := regexp.MustCompile("Function running on (.*)").FindStringSubmatch(stdout.String())
|
||||||
attempts++
|
attempts++
|
||||||
if len(matches) > 1 {
|
if len(matches) > 1 {
|
||||||
funcPort = matches[1]
|
funcPort = matches[1]
|
||||||
|
|
Loading…
Reference in New Issue