mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 02:40:50 +00:00
fix bug of test case
This commit is contained in:
parent
e549d0fd9c
commit
321bcc606a
@ -8,9 +8,11 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
const licenseFile = "./LICENSE"
|
||||
var currentWorkDir, _ = os.Getwd()
|
||||
var licenseFile = filepath.Join(currentWorkDir, "LICENSE")
|
||||
|
||||
func testOpenFile(encoding string, content []byte, t *testing.T) {
|
||||
fi, _ := os.Stat(licenseFile)
|
||||
|
Loading…
Reference in New Issue
Block a user