Skip to content

Commit

Permalink
build: Add tenv linter.
Browse files Browse the repository at this point in the history
This adds the tenv linter to the list of linters and addresses an
instance it complains about.
  • Loading branch information
davecgh committed Aug 21, 2024
1 parent bd6e4f4 commit 24326fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ linters:
- nosprintfhostport
- reassign
- rowserrcheck
- tenv
- tparallel
- typecheck
- unconvert
Expand Down
2 changes: 1 addition & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestDefaultAltDNSNames(t *testing.T) {
func TestAltDNSNamesWithEnv(t *testing.T) {
appName := filepath.Base(os.Args[0])
appName = strings.TrimSuffix(appName, filepath.Ext(appName))
os.Setenv("DCRD_ALT_DNSNAMES", "hostname1,hostname2")
t.Setenv("DCRD_ALT_DNSNAMES", "hostname1,hostname2")
cfg, _, err := loadConfig(appName)
if err != nil {
t.Fatalf("Failed to load dcrd config: %s", err)
Expand Down

0 comments on commit 24326fd

Please sign in to comment.