diff --git a/common/global_const/common_const.go b/common/global_const/common_const.go index bf97eeb5..2387fcf2 100644 --- a/common/global_const/common_const.go +++ b/common/global_const/common_const.go @@ -39,8 +39,8 @@ var ( DummyVerificationGasLimit = big.NewInt(391733) EmptyAddress = common.HexToAddress("0x0000000000000000000000000000000000000000") GitHubActionWhiteListSet = mapset.NewSet( - "testGetAddressTokenBalance", "Test_OptimismSepoliaV06Verify_TryPayUserOpExecute", "Test_EthereumSepoliaV06Verify_TryPayUserOpExecute", "Test_OptimismSepoliaV06Verify_TryPayUserOpExecute", "Test_BaseSepoliaV06Verify_TryPayUserOpExecute", - "Test_ArbitrumSpeoliaV06Verify_TryPayUserOpExecute") + "Test_EthereumSepoliaV06Erc20_TryPayUserOpExecute", "Test_ArbSepoliaV06Erc20_TryPayUserOpExecute", "Test_OpSepoliaV06Erc20_TryPayUserOpExecute", "testGetAddressTokenBalance", "Test_EthereumSepoliaV06Verify_TryPayUserOpExecute", "Test_OptimismSepoliaV06Verify_TryPayUserOpExecute", "Test_BaseSepoliaV06Verify_TryPayUserOpExecute", + "Test_ArbitrumSpeoliaV06Verify_TryPayUserOpExecute", "Test_ScrollSepoliaV06Verify_TryPayUserOpExecute") ) func init() { diff --git a/service/operator/operator_test.go b/service/operator/operator_test.go index 245e54a7..8f5197e9 100644 --- a/service/operator/operator_test.go +++ b/service/operator/operator_test.go @@ -8,6 +8,7 @@ import ( "encoding/json" "fmt" "github.com/sirupsen/logrus" + "os" "testing" ) @@ -101,6 +102,10 @@ func TestOperator(t *testing.T) { }, } for _, tt := range tests { + if os.Getenv("GITHUB_ACTIONS") != "" && global_const.GitHubActionWhiteListSet.Contains(tt.name) { + t.Logf("Skip test [%s] in GitHub Actions", tt.name) + continue + } t.Run(tt.name, tt.test) }