Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
refac: Remove some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Sep 27, 2023
1 parent 1d557c1 commit 8b3aa86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions e2e/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ func checkEnvTargets(t *testing.T, instanceId string, targets ...string) {
// Load .env file
fs := afero.NewOsFs()
envData, err := env.LoadEnv(fs, filepath.Join(instancePath, ".env"))
if err != nil {
t.Fatal(err)
}
envTargets := make([]string, 0, len(envData))
for key := range envData {
envTargets = append(envTargets, key)
Expand Down
6 changes: 1 addition & 5 deletions e2e/local_install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func TestLocalInstall_OptionsWithoutDefault(t *testing.T) {
}
// Modify health-checker to add a hidden option will default and a non-hidden option without default.
// Both TARGETS should be the empty string in the .env.
f, err := os.OpenFile(filepath.Join(pkgDir, "pkg", "health-checker", "profile.yml"), os.O_APPEND|os.O_WRONLY, 0644)
f, err := os.OpenFile(filepath.Join(pkgDir, "pkg", "health-checker", "profile.yml"), os.O_APPEND|os.O_WRONLY, 0o644)
if err != nil {
t.Fatalf("failed to open profile.yml: %v", err)
}
Expand All @@ -497,10 +497,6 @@ func TestLocalInstall_OptionsWithoutDefault(t *testing.T) {
t.Fatalf("failed to write to profile.yml: %v", err)
}

// data, _ := os.ReadFile(filepath.Join(pkgDir, "pkg", "health-checker", "profile.yml"))
// t.Logf("profile.yml: \n %s \n", data)
// t.Fatal("stop")

// remove .git folder
return os.RemoveAll(filepath.Join(pkgDir, ".git"))
},
Expand Down

0 comments on commit 8b3aa86

Please sign in to comment.