Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Latest commit

 

History

History
31 lines (16 loc) · 719 Bytes

File metadata and controls

31 lines (16 loc) · 719 Bytes

stellarnet

Testing

This package uses the vcr package to record http responses. Running

go test

will use the pre-recorded responses to the stellar horizon requests.

To run against the test horizon servers:

go test -live

To record new responses from the test horizon servers:

go test -record

This makes go test very fast (0.02s) as it doesn't hit the network at all. Currently, go test -live or go test -record takes 20s.

Forks

To make a link so the tests use keybase's fork of the horizon client:

ln -s $(GOPATH)/src/github.com/keybase/stellar-org $(GOPATH)/src/github.com/stellar/go

And to remove it:

rm $(GOPATH)/src/github.com/stellar/go