mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 12:03:41 +00:00
os_test.go: use CreateTemp now that it is implemented
This commit is contained in:
+1
-2
@@ -17,8 +17,7 @@ func localTmp() string {
|
||||
}
|
||||
|
||||
func newFile(testName string, t *testing.T) (f *File) {
|
||||
// TODO: use CreateTemp when it lands
|
||||
f, err := OpenFile(TempDir()+"/_Go_"+testName, O_RDWR|O_CREATE, 0644)
|
||||
f, err := CreateTemp("", testName)
|
||||
if err != nil {
|
||||
t.Fatalf("TempFile %s: %s", testName, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user