Skip to content

Commit

Permalink
Update CLI tests to use soroban binary rather than cargo run
Browse files Browse the repository at this point in the history
  • Loading branch information
stellarsaur committed Jan 19, 2024
1 parent bc45174 commit b0d20dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/soroban-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,5 @@ jobs:
go-version: ${{ matrix.go }}
- name: Run Soroban RPC Integration Tests
run: |
make install_rust
go test -race -run '${{ matrix.test }}' -timeout 60m -v ./cmd/soroban-rpc/internal/test/...
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ func runSuccessfulCLICmd(t *testing.T, cmd string) string {
}

func runCLICommand(t *testing.T, cmd string) *icmd.Result {
args := []string{"run", "-q", "--", "--vv"}
args := []string{"-q", "--vv"}
parsedArgs, err := shlex.Split(cmd)
require.NoError(t, err, cmd)
args = append(args, parsedArgs...)
c := icmd.Command("cargo", args...)
c := icmd.Command("soroban", args...)
c.Env = append(os.Environ(),
fmt.Sprintf("SOROBAN_RPC_URL=http://localhost:%d/", sorobanRPCPort),
fmt.Sprintf("SOROBAN_NETWORK_PASSPHRASE=%s", StandaloneNetworkPassphrase),
Expand Down

0 comments on commit b0d20dd

Please sign in to comment.