From aec4ad1121354277da3c9c37da0de896c52c2f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enol=20=C3=81lvarez?= Date: Thu, 5 Dec 2024 22:06:24 +0100 Subject: [PATCH] Fixes --- sol-anchor/tests/integration/integration_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sol-anchor/tests/integration/integration_test.go b/sol-anchor/tests/integration/integration_test.go index 9de1054..0060b49 100644 --- a/sol-anchor/tests/integration/integration_test.go +++ b/sol-anchor/tests/integration/integration_test.go @@ -36,7 +36,7 @@ func runTest(generatorName string) error { } fmt.Printf("Temporary directory created: %s\n", tempDir) - defer os.RemoveAll(tempDir) + //defer os.RemoveAll(tempDir) // Move generator to temp directory cpCmd := exec.Command("cp", fmt.Sprintf("generators/%s.json", generatorName), fmt.Sprintf("%s/%s.json", tempDir, generatorName)) @@ -49,13 +49,15 @@ func runTest(generatorName string) error { // Set the command to execute cmd := exec.Command("substreams", "init", "--state-file", fmt.Sprintf("%s.json", generatorName)) - cmd.Env = append(os.Environ(), "SUBSTREAMS_CODEGEN_ENDPOINT=https://localhost:9000") + cmd.Env = append(os.Environ(), "SUBSTREAMS_CODEGEN_ENDPOINT=http://localhost:9000") cmd.Dir = tempDir + fmt.Print("Hereee") + // Run the command and capture the output output, err = cmd.CombinedOutput() if err != nil { - fmt.Printf("Error running command: %v\n", err) + fmt.Printf("Error running command: %v\n", err.Error()) return err }