test: increase timeout to wait func to get ready on no-container test (#2002)

This commit is contained in:
Jefferson Ramos 2023-10-04 12:16:06 -03:00 committed by GitHub
parent 5ffdf756ae
commit a7c15586ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func TestFunctionRunWithoutContainer(t *testing.T) {
knFuncTerm1.OnWaitCallback = func(stdout *bytes.Buffer) {
t.Log("-----Executing OnWaitCallback")
funcPort, attempts := "", 0
for funcPort == "" && attempts < 10 { // 5 secs
for funcPort == "" && attempts < 30 { // 15 secs
t.Logf("----Function Output:\n%v", stdout.String())
matches := regexp.MustCompile("Running on host port (.*)").FindStringSubmatch(stdout.String())
attempts++