mirror of
https://github.com/logos-storage/logos-storage-network-testing.git
synced 2026-01-02 13:33:07 +00:00
FIX url was causing errors
This commit is contained in:
parent
6914241982
commit
cae18e43b0
@ -54,13 +54,14 @@ func TestHello(t *testing.T) {
|
|||||||
// codex seems to exit upon function exit
|
// codex seems to exit upon function exit
|
||||||
runout := &bytes.Buffer{}
|
runout := &bytes.Buffer{}
|
||||||
runerr := &bytes.Buffer{}
|
runerr := &bytes.Buffer{}
|
||||||
time.Sleep(2 * time.Second)
|
// code below runs a local call to the api, WORKS
|
||||||
_, err = node.Run(cluster.StartProcRequest{
|
// time.Sleep(2 * time.Second)
|
||||||
Command: "curl",
|
// _, err = node.Run(cluster.StartProcRequest{
|
||||||
Args: []string{"-vvv", "\"127.0.0.1:8090/api/codex/v1/debug/info\""},
|
// Command: "curl",
|
||||||
Stdout: runout,
|
// Args: []string{"http://127.0.0.1:8090/api/codex/v1/debug/info"},
|
||||||
Stderr: runerr,
|
// Stdout: runout,
|
||||||
})
|
// Stderr: runerr,
|
||||||
|
// })
|
||||||
fmt.Println(runout)
|
fmt.Println(runout)
|
||||||
fmt.Println(runerr)
|
fmt.Println(runerr)
|
||||||
fmt.Println("---------------------")
|
fmt.Println("---------------------")
|
||||||
@ -75,7 +76,7 @@ func TestHello(t *testing.T) {
|
|||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
group.Go(func() error {
|
group.Go(func() error {
|
||||||
// wait for host to start
|
// calls to the api, DOES NOT WORK
|
||||||
resp, err := http.Get("http://127.0.0.1:8090/api/codex/v1/debug/info")
|
resp, err := http.Get("http://127.0.0.1:8090/api/codex/v1/debug/info")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user