diff --git a/test/functional/dive_test.go b/test/functional/dive_test.go index 7bfabb0..cfedb21 100644 --- a/test/functional/dive_test.go +++ b/test/functional/dive_test.go @@ -755,6 +755,13 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { defer dive.Clean(enclaveName) err := cmd.Run() gomega.Expect(err).NotTo(gomega.HaveOccurred()) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + endpoint := dive.GetServiceDetailsCosmos(service_path[0], dive.DEFAULT_NEUTRON_SERVICENAME) + + // Get latest block and check if node is producing blocks + height, err := dive.GetCosmosLatestBlock(endpoint) + gomega.Expect(err).NotTo(gomega.HaveOccurred()) + gomega.Expect(height).Should(gomega.BeNumerically(">", 0)) }) ginkgo.It("should run single custom neutron node-1", func() { @@ -763,6 +770,13 @@ var _ = ginkgo.Describe("DIVE CLI App", func() { defer dive.Clean(enclaveName) err := cmd.Run() gomega.Expect(err).NotTo(gomega.HaveOccurred()) + service_path, _ := filepath.Glob(fmt.Sprintf("output/%s/services_%s_*.json", enclaveName, enclaveName)) + endpoint := dive.GetServiceDetailsCosmos(service_path[0], dive.NEUTRON_CONFIG0_SERVICENAME) + + // Get latest block and check if node is producing blocks + height, err := dive.GetCosmosLatestBlock(endpoint) + gomega.Expect(err).NotTo(gomega.HaveOccurred()) + gomega.Expect(height).Should(gomega.BeNumerically(">", 0)) }) ginkgo.It("should run single custom neutron node with invalid json path", func() {