Skip to content

Commit

Permalink
fix cicd test
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH committed Jul 12, 2024
1 parent 0674805 commit 6055ab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/port_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func setupGatewayConfig(t *testing.T) func() {
ConfigFilePath := filepath.Join(constants.DefaultConfigPath, common.GatewayName+"."+common.GatewayConfigType)
if _, err := os.Stat(ConfigFilePath); os.IsNotExist(err) {
// create config file
os.MkdirAll(constants.DefaultConfigPath, os.ModePerm)
file, err := os.Create(ConfigFilePath)
if err != nil {
panic(err)
Expand Down Expand Up @@ -58,6 +59,7 @@ func setupIncorrectGatewayConfig(t *testing.T) {
ConfigFilePath := filepath.Join(constants.DefaultConfigPath, common.GatewayName+"."+common.GatewayConfigType)
if _, err := os.Stat(ConfigFilePath); os.IsNotExist(err) {
// create config file
os.MkdirAll(constants.DefaultConfigPath, os.ModePerm)
file, err := os.Create(ConfigFilePath)
if err != nil {
panic(err)
Expand Down

0 comments on commit 6055ab1

Please sign in to comment.