mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
start using t.SetEnv instead of os.Setenv (#14787)
This commit is contained in:
@@ -1655,8 +1655,7 @@ func TestCSVRanges(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestParquetInput(t *testing.T) {
|
||||
os.Setenv("MINIO_API_SELECT_PARQUET", "on")
|
||||
defer os.Setenv("MINIO_API_SELECT_PARQUET", "off")
|
||||
t.Setenv("MINIO_API_SELECT_PARQUET", "on")
|
||||
|
||||
testTable := []struct {
|
||||
requestXML []byte
|
||||
@@ -1757,8 +1756,7 @@ func TestParquetInput(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestParquetInputSchema(t *testing.T) {
|
||||
os.Setenv("MINIO_API_SELECT_PARQUET", "on")
|
||||
defer os.Setenv("MINIO_API_SELECT_PARQUET", "off")
|
||||
t.Setenv("MINIO_API_SELECT_PARQUET", "on")
|
||||
|
||||
testTable := []struct {
|
||||
requestXML []byte
|
||||
@@ -1860,8 +1858,7 @@ func TestParquetInputSchema(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestParquetInputSchemaCSV(t *testing.T) {
|
||||
os.Setenv("MINIO_API_SELECT_PARQUET", "on")
|
||||
defer os.Setenv("MINIO_API_SELECT_PARQUET", "off")
|
||||
t.Setenv("MINIO_API_SELECT_PARQUET", "on")
|
||||
|
||||
testTable := []struct {
|
||||
requestXML []byte
|
||||
|
||||
Reference in New Issue
Block a user