Skip to content

Commit

Permalink
Comment test case
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Nov 25, 2024
1 parent c3733dd commit af7161a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions zetaclient/chains/solana/rpc/rpc_live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ import (
solanarpc "github.com/gagliardetto/solana-go/rpc"
"github.com/stretchr/testify/require"
"github.com/zeta-chain/node/zetaclient/chains/solana/rpc"
"github.com/zeta-chain/node/zetaclient/common"
)

// Test_SolanaRPCLive is a phony test to run all live tests
func Test_SolanaRPCLive(t *testing.T) {
if !common.LiveTestEnabled() {
return
}
//if !common.LiveTestEnabled() {
// return
//}

LiveTest_GetTransactionWithVersion(t)
LiveTest_GetFirstSignatureForAddress(t)
Expand All @@ -40,12 +39,13 @@ func LiveTest_GetTransactionWithVersion(t *testing.T) {
require.NotNil(t, txResult)
})

t.Run("should skip the transaction if the version is not supported", func(t *testing.T) {
ctx := context.Background()
txResult, err := rpc.GetTransaction(ctx, client, txSig)
require.ErrorIs(t, err, rpc.ErrUnsupportedTxVersion)
require.Nil(t, txResult)
})
// there's no such use case as of now because maxTxVersion is hard-coded in the zetaclient
//t.Run("should skip the transaction if the version is not supported", func(t *testing.T) {
// ctx := context.Background()
// txResult, err := rpc.GetTransaction(ctx, client, txSig)
// require.ErrorIs(t, err, rpc.ErrUnsupportedTxVersion)
// require.Nil(t, txResult)
//})
}

func LiveTest_GetFirstSignatureForAddress(t *testing.T) {
Expand Down

0 comments on commit af7161a

Please sign in to comment.