Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
enoldev committed Dec 5, 2024
1 parent 55280e0 commit aec4ad1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sol-anchor/tests/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
}

Expand Down

0 comments on commit aec4ad1

Please sign in to comment.