Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed May 13, 2024
1 parent 95cfce6 commit dd727a6
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 3 deletions.
3 changes: 3 additions & 0 deletions cmd/server/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func APITestCall(engine *gin.Engine, method, url string, body any, response any,
}

func TestAPI(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}

initEngine("../../config/basic_strategy_config.json", "../../config/basic_config.json", "../../config/secret_config.json")
tests := []struct {
Expand Down
4 changes: 3 additions & 1 deletion common/ethereum_contract/ethereum_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import (
)

func TestPaymasterV07(t *testing.T) {

if testing.Short() {
t.Skip("skipping test in short mode.")
}
config.InitConfig("../../config/basic_strategy_config.json", "../../config/basic_config.json", "../../config/secret_config.json")
network := config.GetNewWorkClientURl(global_const.EthereumSepolia)
contractAddress := common.HexToAddress("0x3Da96267B98a33267249734FD8FFeC75093D3085")
Expand Down
3 changes: 3 additions & 0 deletions common/network/arbitrum/arbitrum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import (
)

func TestGetArbitrumGas(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
config.InitConfig("../../../config/basic_strategy_config.json", "../../../config/basic_config.json", "../../../config/secret_config.json")
strategy := config.GetBasicStrategyConfig("Arbitrum_Sepolia_v06_verifyPaymaster")
if strategy == nil {
Expand Down
3 changes: 3 additions & 0 deletions common/network/ethereum_adaptable_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import (
)

func TestEthereumAdaptableExecutor(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
config.InitConfig("../../config/basic_strategy_config.json", "../../config/basic_config.json", "../../config/secret_config.json")
logrus.SetLevel(logrus.DebugLevel)
op, err := user_op.NewUserOp(utils.GenerateMockUservOperation())
Expand Down
4 changes: 3 additions & 1 deletion common/network/pre_verification_gas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import (
)

func TestPreVerGas(t *testing.T) {

if testing.Short() {
t.Skip("skipping test in short mode.")
}
config.InitConfig("../../config/basic_strategy_config.json", "../../config/basic_config.json", "../../config/secret_config.json")
logrus.SetLevel(logrus.DebugLevel)

Expand Down
3 changes: 3 additions & 0 deletions common/price_compoent/price_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import (
)

func TestPriceUtilTest(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
config.InitConfig("../../config/basic_strategy_config.json", "../../config/basic_config.json", "../../config/secret_config.json")
tests := []struct {
name string
Expand Down
6 changes: 6 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ import (
)

func TestSecretConfigInit(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
secretConfigInit("../config/secret_config.json")
config := GetNetworkSecretConfig(global_const.EthereumSepolia)
t.Log(config.RpcUrl)
t.Log(config.SignerKey)
t.Log(GetSigner(global_const.EthereumSepolia).Address.Hex())
}
func TestConfigInit(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
InitConfig("../config/basic_strategy_config.json", "../config/basic_config.json", "../config/secret_config.json")
strategy := GetBasicStrategyConfig("Ethereum_Sepolia_v06_verifyPaymaster")
if strategy == nil {
Expand Down
3 changes: 3 additions & 0 deletions gas_executor/gas_computor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func TestComputeGas(t *testing.T) {
//assert.NotNil(t, gas)
//jsonBypte, _ := json.Marshal(gas)
//fmt.Println(string(jsonBypte))
if testing.Short() {
t.Skip("skipping test in short mode.")
}
config.InitConfig("../config/basic_strategy_config.json", "../config/basic_config.json", "../config/secret_config.json")
logrus.SetLevel(logrus.DebugLevel)
op, err := user_op.NewUserOp(utils.GenerateMockUservOperation())
Expand Down
4 changes: 3 additions & 1 deletion service/chain_service/chain_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import (
)

func TestChainService(t *testing.T) {

if testing.Short() {
t.Skip("skipping test in short mode.")
}
config.InitConfig("../../config/basic_strategy_config.json", "../../config/basic_config.json", "../../config/secret_config.json")
logrus.SetLevel(logrus.DebugLevel)
op, err := user_op.NewUserOp(utils.GenerateMockUservOperation())
Expand Down

0 comments on commit dd727a6

Please sign in to comment.