From d6a96598982a0d4df958ec2b2adc7128f1029346 Mon Sep 17 00:00:00 2001 From: anoop142 Date: Mon, 20 Nov 2023 23:08:21 +0530 Subject: [PATCH 1/2] fix missing os package import --- govarnam/govarnam_ml_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/govarnam/govarnam_ml_test.go b/govarnam/govarnam_ml_test.go index ae32a7b..877de53 100644 --- a/govarnam/govarnam_ml_test.go +++ b/govarnam/govarnam_ml_test.go @@ -3,6 +3,7 @@ package govarnam import ( "context" "log" + "os" "path" "strings" "testing" From 918d128fea0cf20e4075ed4be70e2a2f76a68198 Mon Sep 17 00:00:00 2001 From: anoop142 Date: Mon, 20 Nov 2023 23:08:46 +0530 Subject: [PATCH 2/2] fix: proper replacement for ioutil TempDir --- govarnam/govarnam_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govarnam/govarnam_test.go b/govarnam/govarnam_test.go index 06b6b67..6400584 100644 --- a/govarnam/govarnam_test.go +++ b/govarnam/govarnam_test.go @@ -103,7 +103,7 @@ func TestMain(m *testing.M) { log.Fatal(err) } - testTempDir, err = os.TempDir("", "govarnam_test") + testTempDir, err = os.MkdirTemp("", "govarnam_test") checkError(err) for _, schemeDetail := range schemeDetails {