@@ -55,7 +55,7 @@ func getAvailablePort() (int, net.Listener, error) {
5555}
5656
5757// same as getAvailablePort but fails test if not successful
58- func mustGetAvailablePort (t * testing.T ) int {
58+ func mustGetAvailablePort (t testing.TB ) int {
5959 t .Helper ()
6060 port , listener , err := getAvailablePort ()
6161 require .NoError (t , err )
@@ -221,7 +221,7 @@ const (
221221// createPassphraseFile creates a temporary passphrase file and returns its path.
222222// The file is created in the provided directory with secure permissions (0600).
223223// If the directory doesn't exist, it will be created with 0755 permissions.
224- func createPassphraseFile (t * testing.T , dir string ) string {
224+ func createPassphraseFile (t testing.TB , dir string ) string {
225225 t .Helper ()
226226 // Ensure the directory exists
227227 err := os .MkdirAll (dir , 0755 )
@@ -236,7 +236,7 @@ func createPassphraseFile(t *testing.T, dir string) string {
236236// createJWTSecretFile creates a temporary JWT secret file and returns its path.
237237// The file is created in the provided directory with secure permissions (0600).
238238// If the directory doesn't exist, it will be created with 0755 permissions.
239- func createJWTSecretFile (t * testing.T , dir , jwtSecret string ) string {
239+ func createJWTSecretFile (t testing.TB , dir , jwtSecret string ) string {
240240 t .Helper ()
241241 // Ensure the directory exists
242242 err := os .MkdirAll (dir , 0755 )
@@ -256,7 +256,7 @@ func createJWTSecretFile(t *testing.T, dir, jwtSecret string) string {
256256// - rpcPort: Optional RPC port to use (if empty, uses default port)
257257//
258258// Returns: The full P2P address (e.g., /ip4/127.0.0.1/tcp/7676/p2p/12D3KooW...)
259- func getNodeP2PAddress (t * testing.T , sut * SystemUnderTest , nodeHome string , rpcPort ... string ) string {
259+ func getNodeP2PAddress (t testing.TB , sut * SystemUnderTest , nodeHome string , rpcPort ... string ) string {
260260 t .Helper ()
261261
262262 // Build command arguments
@@ -313,7 +313,7 @@ func getNodeP2PAddress(t *testing.T, sut *SystemUnderTest, nodeHome string, rpcP
313313// - jwtSecret: JWT secret for authenticating with EVM engine
314314// - genesisHash: Hash of the genesis block for chain validation
315315// - endpoints: TestEndpoints struct containing unique port assignments
316- func setupSequencerNode (t * testing.T , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
316+ func setupSequencerNode (t testing.TB , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
317317 t .Helper ()
318318
319319 // Create passphrase file
@@ -357,7 +357,7 @@ func setupSequencerNode(t *testing.T, sut *SystemUnderTest, sequencerHome, jwtSe
357357// setupSequencerNodeLazy initializes and starts the sequencer node in lazy mode.
358358// In lazy mode, blocks are only produced when transactions are available,
359359// not on a regular timer.
360- func setupSequencerNodeLazy (t * testing.T , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
360+ func setupSequencerNodeLazy (t testing.TB , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
361361 t .Helper ()
362362
363363 // Create passphrase file
@@ -417,7 +417,7 @@ func setupSequencerNodeLazy(t *testing.T, sut *SystemUnderTest, sequencerHome, j
417417// - genesisHash: Hash of the genesis block for chain validation
418418// - sequencerP2PAddress: P2P address of the sequencer node to connect to
419419// - endpoints: TestEndpoints struct containing unique port assignments
420- func setupFullNode (t * testing.T , sut * SystemUnderTest , fullNodeHome , sequencerHome , fullNodeJwtSecret , genesisHash , sequencerP2PAddress string , endpoints * TestEndpoints ) {
420+ func setupFullNode (t testing.TB , sut * SystemUnderTest , fullNodeHome , sequencerHome , fullNodeJwtSecret , genesisHash , sequencerP2PAddress string , endpoints * TestEndpoints ) {
421421 t .Helper ()
422422
423423 // Initialize full node
@@ -478,7 +478,7 @@ var globalNonce uint64 = 0
478478//
479479// This is used in full node sync tests to verify that both nodes
480480// include the same transaction in the same block number.
481- func submitTransactionAndGetBlockNumber (t * testing.T , sequencerClients ... * ethclient.Client ) (common.Hash , uint64 ) {
481+ func submitTransactionAndGetBlockNumber (t testing.TB , sequencerClients ... * ethclient.Client ) (common.Hash , uint64 ) {
482482 t .Helper ()
483483
484484 // Submit transaction to sequencer EVM with unique nonce
@@ -512,7 +512,7 @@ func submitTransactionAndGetBlockNumber(t *testing.T, sequencerClients ...*ethcl
512512// - daPort: optional DA port to use (if empty, uses default)
513513//
514514// Returns: jwtSecret, fullNodeJwtSecret (empty if needsFullNode=false), genesisHash
515- func setupCommonEVMTest (t * testing.T , sut * SystemUnderTest , needsFullNode bool , _ ... string ) (string , string , string , * TestEndpoints ) {
515+ func setupCommonEVMTest (t testing.TB , sut * SystemUnderTest , needsFullNode bool , _ ... string ) (string , string , string , * TestEndpoints ) {
516516 t .Helper ()
517517
518518 // Reset global nonce for each test to ensure clean state
@@ -570,7 +570,7 @@ func setupCommonEVMTest(t *testing.T, sut *SystemUnderTest, needsFullNode bool,
570570// - blockHeight: Height of the block to retrieve (use nil for latest)
571571//
572572// Returns: block hash, state root, transaction count, block number, and error
573- func checkBlockInfoAt (t * testing.T , ethURL string , blockHeight * uint64 ) (common.Hash , common.Hash , int , uint64 , error ) {
573+ func checkBlockInfoAt (t testing.TB , ethURL string , blockHeight * uint64 ) (common.Hash , common.Hash , int , uint64 , error ) {
574574 t .Helper ()
575575
576576 ctx := context .Background ()
@@ -613,7 +613,7 @@ func checkBlockInfoAt(t *testing.T, ethURL string, blockHeight *uint64) (common.
613613// - nodeHome: Directory path for sequencer node data
614614//
615615// Returns: genesisHash for the sequencer
616- func setupSequencerOnlyTest (t * testing.T , sut * SystemUnderTest , nodeHome string ) (string , string ) {
616+ func setupSequencerOnlyTest (t testing.TB , sut * SystemUnderTest , nodeHome string ) (string , string ) {
617617 t .Helper ()
618618
619619 // Use common setup (no full node needed)
@@ -635,7 +635,7 @@ func setupSequencerOnlyTest(t *testing.T, sut *SystemUnderTest, nodeHome string)
635635// - sequencerHome: Directory path for sequencer node data
636636// - jwtSecret: JWT secret for sequencer's EVM engine authentication
637637// - genesisHash: Hash of the genesis block for chain validation
638- func restartDAAndSequencer (t * testing.T , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
638+ func restartDAAndSequencer (t testing.TB , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
639639 t .Helper ()
640640
641641 // First restart the local DA
@@ -685,7 +685,7 @@ func restartDAAndSequencer(t *testing.T, sut *SystemUnderTest, sequencerHome, jw
685685// - sequencerHome: Directory path for sequencer node data
686686// - jwtSecret: JWT secret for sequencer's EVM engine authentication
687687// - genesisHash: Hash of the genesis block for chain validation
688- func restartDAAndSequencerLazy (t * testing.T , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
688+ func restartDAAndSequencerLazy (t testing.TB , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string , endpoints * TestEndpoints ) {
689689 t .Helper ()
690690
691691 // First restart the local DA
@@ -736,7 +736,7 @@ func restartDAAndSequencerLazy(t *testing.T, sut *SystemUnderTest, sequencerHome
736736// - sequencerHome: Directory path for sequencer node data
737737// - jwtSecret: JWT secret for sequencer's EVM engine authentication
738738// - genesisHash: Hash of the genesis block for chain validation
739- func restartSequencerNode (t * testing.T , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string ) {
739+ func restartSequencerNode (t testing.TB , sut * SystemUnderTest , sequencerHome , jwtSecret , genesisHash string ) {
740740 t .Helper ()
741741
742742 // Start sequencer node (without init - node already exists)
@@ -772,7 +772,7 @@ func restartSequencerNode(t *testing.T, sut *SystemUnderTest, sequencerHome, jwt
772772// - nodeName: Human-readable name for logging (e.g., "sequencer", "full node")
773773//
774774// This function ensures that during lazy mode idle periods, no automatic block production occurs.
775- func verifyNoBlockProduction (t * testing.T , client * ethclient.Client , duration time.Duration , nodeName string ) {
775+ func verifyNoBlockProduction (t testing.TB , client * ethclient.Client , duration time.Duration , nodeName string ) {
776776 t .Helper ()
777777
778778 ctx := context .Background ()
0 commit comments