Skip to content

Commit

Permalink
Remove assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Jun 17, 2024
1 parent b3cd836 commit 81bdf1e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cmd/soroban-rpc/internal/test/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

func TestSendTransactionSucceedsWithoutResults(t *testing.T) {
test := NewTest(t, nil)

client := test.GetRPCLient()

kp := keypair.Root(StandaloneNetworkPassphrase)
Expand Down Expand Up @@ -136,8 +135,6 @@ func TestSendTransactionBadSequence(t *testing.T) {
err = client.CallResult(context.Background(), "sendTransaction", request, &result)
assert.NoError(t, err)

//assert.NotZero(t, result.LatestLedger)
//assert.NotZero(t, result.LatestLedgerCloseTime)
expectedHashHex, err := tx.HashHex(StandaloneNetworkPassphrase)
assert.NoError(t, err)
assert.Equal(t, expectedHashHex, result.Hash)
Expand Down Expand Up @@ -245,8 +242,6 @@ func TestSendTransactionFailedInLedger(t *testing.T) {
assert.NoError(t, err)
fmt.Printf("error: %#v\n", txResult)
}
//assert.NotZero(t, result.LatestLedger)
//assert.NotZero(t, result.LatestLedgerCloseTime)

response := getTransaction(t, client, expectedHashHex)
assert.Equal(t, methods.TransactionStatusFailed, response.Status)
Expand Down Expand Up @@ -291,8 +286,6 @@ func sendSuccessfulTransaction(t *testing.T, client *jrpc2.Client, kp *keypair.F
assert.NoError(t, err)
t.Logf("error: %#v\n", txResult)
}
//assert.NotZero(t, result.LatestLedger)
//assert.NotZero(t, result.LatestLedgerCloseTime)

response := getTransaction(t, client, expectedHashHex)
if !assert.Equal(t, methods.TransactionStatusSuccess, response.Status) {
Expand Down

0 comments on commit 81bdf1e

Please sign in to comment.