summaryrefslogtreecommitdiff
path: root/integration/utils.go
blob: 12e1f620db6230ee9c14299da7a952a470351df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package integration

import (
	"os"
	"testing"
)

func tempdir(t *testing.T) string {
	dir, err := os.MkdirTemp("", "iot-contact-go-integration-test-*")
	if err != nil {
		t.Skip("Could not create temporary directory for integration test.")
	}
	return dir
}