Skip to content

Commit

Permalink
help2
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Sep 17, 2024
1 parent cc084c7 commit df8784e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions e2etest/test_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,6 @@ func StartManager(t *testing.T, numMatureOutputsInWallet uint32, epochInterval u
cfg.Babylon.RPCAddr = fmt.Sprintf("http://localhost:%s", babylond.GetPort("26657/tcp"))
cfg.Babylon.GRPCAddr = fmt.Sprintf("https://localhost:%s", babylond.GetPort("9090/tcp"))

cmd := exec.Command("ls", fmt.Sprintf("-a %s", cfg.Babylon.KeyDirectory))

// Get the output of the command
output, err := cmd.Output()
require.NoError(t, err)

// Print the output
fmt.Printf("-------- %s", string(output))

babylonClient, err := bbnclient.New(&cfg.Babylon, nil)
require.NoError(t, err)

Expand All @@ -172,6 +163,11 @@ func StartManager(t *testing.T, numMatureOutputsInWallet uint32, epochInterval u
return true
}, eventuallyWaitTimeOut, eventuallyPollTime)

cmd := exec.Command("ls", "-a", cfg.Babylon.KeyDirectory)
output, _ := cmd.Output()
require.NoError(t, err)
fmt.Printf("-------- %s", string(output))

return &TestManager{
TestRpcClient: testRpcClient,
BabylonClient: babylonClient,
Expand Down Expand Up @@ -290,6 +286,9 @@ func importPrivateKey(btcHandler *BitcoindTestHandler) (*btcec.PrivateKey, error

func tempDir(t *testing.T) (string, error) {
tempPath, err := os.MkdirTemp(os.TempDir(), "babylon-test-*")
if err != nil {
return "", err
}

if err = os.Chmod(tempPath, 0777); err != nil {
return "", err
Expand Down

0 comments on commit df8784e

Please sign in to comment.