Fix some lint and vet issues
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func TestGenerateNginx(t *testing.T) {
|
||||
tmpDir := t.TempDir()
|
||||
|
||||
|
||||
// Create test directories
|
||||
log1Dir := filepath.Join(tmpDir, "log1")
|
||||
log2Dir := filepath.Join(tmpDir, "log2")
|
||||
@@ -50,7 +50,7 @@ logs:
|
||||
}
|
||||
|
||||
nginx1Str := string(nginxContent1)
|
||||
|
||||
|
||||
// Check server block basics
|
||||
if !strings.Contains(nginx1Str, "server {") {
|
||||
t.Error("Expected server block")
|
||||
@@ -304,4 +304,4 @@ func TestGenerateNginxNoListenConfig(t *testing.T) {
|
||||
if !strings.Contains(nginxStr, "listen 8080;") {
|
||||
t.Error("Expected default port 8080 when no listen config provided")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user