fix bug of test case

This commit is contained in:
youngsterxyf 2016-01-27 12:26:37 +08:00
parent e549d0fd9c
commit 321bcc606a
1 changed files with 3 additions and 1 deletions

View File

@ -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)