test: update regex to match new 'Function running on' output format

Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
This commit is contained in:
RayyanSeliya 2025-07-27 01:21:42 +05:30
parent b77a031a5a
commit c7af0e2a24
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func TestFunctionRunWithoutContainer(t *testing.T) {
funcPort, attempts := "", 0
for funcPort == "" && attempts < 30 { // 15 secs
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++
if len(matches) > 1 {
funcPort = matches[1]