Fixed circular dependency issue

This commit is contained in:
Pijus Kamandulis
2020-03-22 00:22:08 +02:00
parent f9d35e3bf2
commit af7972685e
8 changed files with 21 additions and 15 deletions

View File

@@ -1,10 +1,11 @@
package models
import (
testUtil "../unitTestUtil"
utils "../utils"
"os"
"testing"
testUtil "../unitTestUtil"
fileio "../utils/fileio"
)
func TestParseUploads(t *testing.T) {
@@ -62,7 +63,7 @@ func TestWriteToFile(t *testing.T) {
upload.WriteToFile(filePath)
actual := utils.ReadFileToString(filePath)
actual := fileio.ReadFileToString(filePath)
tu.AssertString(actual, expected, "File content")
os.Remove(filePath)