Skip to content

Commit

Permalink
Increase timeout for JS and DI sfplatform test
Browse files Browse the repository at this point in the history
  • Loading branch information
domhanak committed Feb 8, 2024
1 parent 17e3816 commit 701fd56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ func getHealthStatusInContainer(podName string, containerName string, ns string)
output, err := utils.Run(cmd)
Expect(err).NotTo(HaveOccurred())
stringOutput := string(output)
fmt.Printf("Response from health endpoint: %v\n", stringOutput)
startIndex := strings.Index(stringOutput, "{")
endIndex := strings.LastIndex(stringOutput, "}")
stringOutput = stringOutput[startIndex-1:endIndex+1]
fmt.Printf("Found JSON object: %v\n", stringOutput)
fmt.Printf("Parsed following JSON object from health Endpoint response: %v\n", stringOutput)
err = json.Unmarshal([]byte(stringOutput), &h)
if err != nil {
return nil, fmt.Errorf("failed to execute curl command against health endpoint in container %s:%v with output %s", containerName, err, output)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/platform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var _ = Describe("Validate the persistence", Ordered, func() {
cmd = exec.Command("kubectl", "wait", "pod", "-n", targetNamespace, "-l", "app=sonataflow-platform", "--for", "condition=Ready", "--timeout=5s")
_, err = utils.Run(cmd)
return err
}, 10*time.Minute, 5).Should(Succeed())
}, 20*time.Minute, 5).Should(Succeed())
By("Evaluate status of service's health endpoint")
cmd = exec.Command("kubectl", "get", "pod", "-l", "app=sonataflow-platform", "-n", targetNamespace, "-ojsonpath={.items[*].metadata.name}")
output, err := utils.Run(cmd)
Expand Down

0 comments on commit 701fd56

Please sign in to comment.