Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Aug 6, 2024
1 parent 9600e7b commit 3e2df01
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cmd/export_ledgers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ import (
"strings"
"testing"

"github.com/stellar/stellar-etl/internal/utils"
"github.com/stretchr/testify/assert"
)

var executableName = "stellar-etl"
var archiveURL = "http://history.stellar.org/prd/core-live/core_live_001"
var archiveURLs = []string{archiveURL}
var latestLedger = getLastSeqNum(archiveURLs)
var update = flag.Bool("update", false, "update the golden files of this test")
var gotFolder = "testdata/got/"

Expand Down Expand Up @@ -247,14 +243,6 @@ func extractErrorMsg(loggerOutput string) string {
return loggerOutput[errIndex : errIndex+endIndex]
}

func getLastSeqNum(archiveURLs []string) uint32 {
num, err := utils.GetLatestLedgerSequence(archiveURLs)
if err != nil {
panic(err)
}
return num
}

func clearOutputFile(outputFile string) (string, error) {
f, err := os.OpenFile(outputFile, os.O_RDWR|os.O_CREATE, 0644)
if err != nil {
Expand Down

0 comments on commit 3e2df01

Please sign in to comment.