mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-26 22:48:07 +02:00
new tracing system
This commit is contained in:
parent
b87d940d11
commit
a6f43f3c3c
127 changed files with 7509 additions and 1454 deletions
21
internal/testenv/temp_darwin.go
Normal file
21
internal/testenv/temp_darwin.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
//go:build darwin
|
||||
|
||||
package testenv
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// macos temp directory names are too long
|
||||
// https://github.com/golang/go/issues/62614
|
||||
func tempDir(t testing.TB) string {
|
||||
dir, err := os.MkdirTemp("", "test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Cleanup(func() {
|
||||
os.RemoveAll(dir)
|
||||
})
|
||||
return dir
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue