@@ -29,46 +29,47 @@ func RegisterAsyncTests() {
2929 }
3030 subnetsSuite := utils .CreateSubnetsSuite (genesisFiles )
3131
32+ timeout := 3 * time .Minute
3233 _ = ginkgo .Describe ("[Asynchronized Precompile Tests]" , func () {
3334 // Register the ping test first
3435 utils .RegisterPingTest ()
3536
3637 // Each ginkgo It node specifies the name of the genesis file (in ./tests/precompile/genesis/)
3738 // to use to launch the subnet and the name of the TS test file to run on the subnet (in ./contracts/tests/)
3839 ginkgo .It ("contract native minter" , ginkgo .Label ("Precompile" ), ginkgo .Label ("ContractNativeMinter" ), func () {
39- ctx , cancel := context .WithTimeout (context .Background (), time . Minute )
40+ ctx , cancel := context .WithTimeout (context .Background (), timeout )
4041 defer cancel ()
4142
4243 blockchainID := subnetsSuite .GetBlockchainID ("contract_native_minter" )
4344 runDefaultHardhatTests (ctx , blockchainID , "contract_native_minter" )
4445 })
4546
4647 ginkgo .It ("tx allow list" , ginkgo .Label ("Precompile" ), ginkgo .Label ("TxAllowList" ), func () {
47- ctx , cancel := context .WithTimeout (context .Background (), time . Minute )
48+ ctx , cancel := context .WithTimeout (context .Background (), timeout )
4849 defer cancel ()
4950
5051 blockchainID := subnetsSuite .GetBlockchainID ("tx_allow_list" )
5152 runDefaultHardhatTests (ctx , blockchainID , "tx_allow_list" )
5253 })
5354
5455 ginkgo .It ("contract deployer allow list" , ginkgo .Label ("Precompile" ), ginkgo .Label ("ContractDeployerAllowList" ), func () {
55- ctx , cancel := context .WithTimeout (context .Background (), time . Minute )
56+ ctx , cancel := context .WithTimeout (context .Background (), timeout )
5657 defer cancel ()
5758
5859 blockchainID := subnetsSuite .GetBlockchainID ("contract_deployer_allow_list" )
5960 runDefaultHardhatTests (ctx , blockchainID , "contract_deployer_allow_list" )
6061 })
6162
6263 ginkgo .It ("fee manager" , ginkgo .Label ("Precompile" ), ginkgo .Label ("FeeManager" ), func () {
63- ctx , cancel := context .WithTimeout (context .Background (), time . Minute )
64+ ctx , cancel := context .WithTimeout (context .Background (), timeout )
6465 defer cancel ()
6566
6667 blockchainID := subnetsSuite .GetBlockchainID ("fee_manager" )
6768 runDefaultHardhatTests (ctx , blockchainID , "fee_manager" )
6869 })
6970
7071 ginkgo .It ("reward manager" , ginkgo .Label ("Precompile" ), ginkgo .Label ("RewardManager" ), func () {
71- ctx , cancel := context .WithTimeout (context .Background (), time . Minute )
72+ ctx , cancel := context .WithTimeout (context .Background (), timeout )
7273 defer cancel ()
7374
7475 blockchainID := subnetsSuite .GetBlockchainID ("reward_manager" )
@@ -78,7 +79,7 @@ func RegisterAsyncTests() {
7879 // ADD YOUR PRECOMPILE HERE
7980 /*
8081 ginkgo.It("your precompile", ginkgo.Label("Precompile"), ginkgo.Label("YourPrecompile"), func() {
81- ctx, cancel := context.WithTimeout(context.Background(), time.Minute )
82+ ctx, cancel := context.WithTimeout(context.Background(), timeout )
8283 defer cancel()
8384
8485 // Specify the name shared by the genesis file in ./tests/precompile/genesis/{your_precompile}.json
0 commit comments