From af7161a58d4decb946b68f5425548f927efed0d5 Mon Sep 17 00:00:00 2001 From: Dmitry S <11892559+swift1337@users.noreply.github.com> Date: Mon, 25 Nov 2024 20:08:30 +0100 Subject: [PATCH] Comment test case --- zetaclient/chains/solana/rpc/rpc_live_test.go | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/zetaclient/chains/solana/rpc/rpc_live_test.go b/zetaclient/chains/solana/rpc/rpc_live_test.go index 26b248b007..78a4bfad6b 100644 --- a/zetaclient/chains/solana/rpc/rpc_live_test.go +++ b/zetaclient/chains/solana/rpc/rpc_live_test.go @@ -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) @@ -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) {