Update client/cmd/service_test.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Viktor Liu 2025-06-13 21:21:28 +02:00 committed by GitHub
parent 47d5770922
commit 23e64a5f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,9 +74,10 @@ func TestServiceLifecycle(t *testing.T) {
serviceName = originalServiceName
}()
configPath = "/tmp/netbird-test-config.json"
tempDir := t.TempDir()
configPath = fmt.Sprintf("%s/netbird-test-config.json", tempDir)
logLevel = "info"
daemonAddr = "unix:///tmp/netbird-test.sock"
daemonAddr = fmt.Sprintf("unix://%s/netbird-test.sock", tempDir)
ctx := context.Background()