Skip to content

Commit

Permalink
remove fmt println
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtx1020 committed May 5, 2024
1 parent 7f5fad5 commit 8f4caf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 11 additions & 6 deletions api/destinations/destinations_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package destinations

import (
"github.com/jmtx1020/go_quicknode/client"
"fmt"
"os"
"testing"

"github.com/jmtx1020/go_quicknode/client"
)

func TestCreateDestination(t *testing.T) {
Expand Down Expand Up @@ -46,15 +48,18 @@ func TestGetDestinationByID(t *testing.T) {

destinationAPI := &DestinationAPI{API: apiWrapper}

allDestinations, err := destinationAPI.GetAllDestinations()
if err != nil {
t.Errorf("Unexpected error: %v", err)
}
// allDestinations, err := destinationAPI.GetAllDestinations()
// if err != nil {
// t.Errorf("Unexpected error: %v", err)
// }

_, err = destinationAPI.GetDestinationByID(allDestinations[0].ID)
// _, err = destinationAPI.GetDestinationByID(allDestinations[0].ID)
dest2, err := destinationAPI.GetDestinationByID("7a5548ff-6555-4691-80c6-91eaac2d484c")
if err != nil {
t.Errorf("Unexpected error: %v", err)
}

fmt.Println(dest2)
}

func TestDeleteDestinationByID(t *testing.T) {
Expand Down
4 changes: 0 additions & 4 deletions api/ipfs/pinning/pinning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ func TestGetObjectByRequestID(t *testing.T) {
if err != nil {
t.Errorf("Unexpected error: %v", err)
}
fmt.Println(results.Data[0].RequestID)

_, err = pinningAPI.GetObjectByRequestID(results.Data[0].RequestID)
if err != nil {
Expand All @@ -81,7 +80,6 @@ func TestGetPinnedObjectByRequestID(t *testing.T) {
if err != nil {
t.Errorf("Unexpected error: %v", err)
}
fmt.Println(results.Data[0].RequestID)

object, err := pinningAPI.GetPinnedObjectByRequestID(results.Data[0].RequestID)
if err != nil {
Expand All @@ -100,7 +98,6 @@ func TestUpdatePinnedObject(t *testing.T) {
if err != nil {
t.Errorf("Unexpected error: %v", err)
}
fmt.Println(results_first.Data[0].RequestID)

payload := PinnedObjectPayload{
CID: "QmWTqpfKyPJcGuWWg73beJJiL6FrCB5yX8qfcCF4bHanes",
Expand All @@ -125,7 +122,6 @@ func TestDeletePinnedObject(t *testing.T) {
if err != nil {
t.Errorf("Unexpected error: %v", err)
}
fmt.Println(results_first.Data[0].RequestID)

_, err = pinningAPI.DeletePinnedObject(results_first.Data[0].RequestID)
if err != nil {
Expand Down

0 comments on commit 8f4caf6

Please sign in to comment.