From 49034df2e93eea5de6c51cd8f8b9335baf88f88b Mon Sep 17 00:00:00 2001 From: Miguel Filipe Date: Mon, 29 Jul 2024 15:32:25 -0700 Subject: [PATCH] rename testfiles for opstack --- client/jsonrpc/opstack_test.go | 9 ++++++--- ...ck-MODE-block-0x7a549b-debug_traceBlockByNumber.json} | 0 ...pstack-MODE-block-0x7a549b-eth_getBlockByNumber.json} | 0 ...pstack-MODE-block-0x7a549b-eth_getBlockReceipts.json} | 0 4 files changed, 6 insertions(+), 3 deletions(-) rename client/jsonrpc/testdata/{opstack-debug_traceBlockByNumber.json => opstack-MODE-block-0x7a549b-debug_traceBlockByNumber.json} (100%) rename client/jsonrpc/testdata/{opstack-eth_getBlockByNumber.json => opstack-MODE-block-0x7a549b-eth_getBlockByNumber.json} (100%) rename client/jsonrpc/testdata/{opstack-eth_getBlockReceipts.json => opstack-MODE-block-0x7a549b-eth_getBlockReceipts.json} (100%) diff --git a/client/jsonrpc/opstack_test.go b/client/jsonrpc/opstack_test.go index f6538f4..ed82d02 100644 --- a/client/jsonrpc/opstack_test.go +++ b/client/jsonrpc/opstack_test.go @@ -10,9 +10,12 @@ import ( ) func TestOpStackBasic(t *testing.T) { - getBlockByNumberResponse := readFileForTest("testdata/opstack-eth_getBlockByNumber.json") - getBlockReceiptsResponse := readFileForTest("testdata/opstack-eth_getBlockReceipts.json") - debugtraceBlockByNumberResponse := readFileForTest("testdata/opstack-debug_traceBlockByNumber.json") + getBlockByNumberResponse := readFileForTest( + "testdata/opstack-MODE-block-0x7a549b-eth_getBlockByNumber.json") + getBlockReceiptsResponse := readFileForTest( + "testdata/opstack-MODE-block-0x7a549b-eth_getBlockReceipts.json") + debugtraceBlockByNumberResponse := readFileForTest( + "testdata/opstack-MODE-block-0x7a549b-debug_traceBlockByNumber.json") var expectedPayload bytes.Buffer expectedPayload.Write(getBlockByNumberResponse.Bytes()) diff --git a/client/jsonrpc/testdata/opstack-debug_traceBlockByNumber.json b/client/jsonrpc/testdata/opstack-MODE-block-0x7a549b-debug_traceBlockByNumber.json similarity index 100% rename from client/jsonrpc/testdata/opstack-debug_traceBlockByNumber.json rename to client/jsonrpc/testdata/opstack-MODE-block-0x7a549b-debug_traceBlockByNumber.json diff --git a/client/jsonrpc/testdata/opstack-eth_getBlockByNumber.json b/client/jsonrpc/testdata/opstack-MODE-block-0x7a549b-eth_getBlockByNumber.json similarity index 100% rename from client/jsonrpc/testdata/opstack-eth_getBlockByNumber.json rename to client/jsonrpc/testdata/opstack-MODE-block-0x7a549b-eth_getBlockByNumber.json diff --git a/client/jsonrpc/testdata/opstack-eth_getBlockReceipts.json b/client/jsonrpc/testdata/opstack-MODE-block-0x7a549b-eth_getBlockReceipts.json similarity index 100% rename from client/jsonrpc/testdata/opstack-eth_getBlockReceipts.json rename to client/jsonrpc/testdata/opstack-MODE-block-0x7a549b-eth_getBlockReceipts.json