os_test.go: use CreateTemp now that it is implemented
Этот коммит содержится в:
родитель
51fc78c100
коммит
1f6b4a5e7b
1 изменённых файлов: 1 добавлений и 2 удалений
|
@ -17,8 +17,7 @@ func localTmp() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func newFile(testName string, t *testing.T) (f *File) {
|
func newFile(testName string, t *testing.T) (f *File) {
|
||||||
// TODO: use CreateTemp when it lands
|
f, err := CreateTemp("", testName)
|
||||||
f, err := OpenFile(TempDir()+"/_Go_"+testName, O_RDWR|O_CREATE, 0644)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("TempFile %s: %s", testName, err)
|
t.Fatalf("TempFile %s: %s", testName, err)
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче