From b74455b747b2fb11364a095b94dffc3cd0f1876f Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Fri, 23 Feb 2024 07:42:24 -0500 Subject: [PATCH] More testing of createTemp --- store/store_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/store/store_test.go b/store/store_test.go index 5f1d6a6d..c4256fae 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -177,7 +177,7 @@ func Test_SingleNodeTempFileCleanup(t *testing.T) { backupScatchPattern, bootScatchPattern, } { - f, err := os.CreateTemp(s.dbDir, pattern) + f, err := createTemp(s.dbDir, pattern) if err != nil { t.Fatalf("failed to create temporary file: %s", err.Error()) } @@ -2666,7 +2666,7 @@ func mustNoop(s *Store, id string) { } func mustCreateTempFile() string { - f, err := os.CreateTemp("", "rqlite-temp") + f, err := createTemp("", "rqlite-temp") if err != nil { panic("failed to create temporary file") } @@ -2675,7 +2675,7 @@ func mustCreateTempFile() string { } func mustCreateTempFD() *os.File { - f, err := os.CreateTemp("", "rqlite-temp") + f, err := createTemp("", "rqlite-temp") if err != nil { panic("failed to create temporary file") }