mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
tests: Do not allow forced type asserts (#20905)
This commit is contained in:
@@ -210,7 +210,7 @@ func TestIsKubernetes(t *testing.T) {
|
||||
// Tests if the environment we are running is Helm chart.
|
||||
func TestGetHelmVersion(t *testing.T) {
|
||||
createTempFile := func(content string) string {
|
||||
tmpfile, err := os.CreateTemp("", "helm-testfile-")
|
||||
tmpfile, err := os.CreateTemp(t.TempDir(), "helm-testfile-")
|
||||
if err != nil {
|
||||
t.Fatalf("Unable to create temporary file. %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user