Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed May 7, 2024
1 parent a39232d commit b837d61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/global_const/common_const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 5 additions & 0 deletions service/operator/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"encoding/json"
"fmt"
"github.com/sirupsen/logrus"
"os"
"testing"
)

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit b837d61

Please sign in to comment.