Skip to content

Commit

Permalink
💚 修复单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed May 24, 2019
1 parent 4ac4866 commit be30b56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/initsrv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
package service

import (
"github.com/b3log/gulu"
"log"
"os"
"testing"

"github.com/b3log/pipe/model"
"github.com/b3log/pipe/util"
)

const (
Expand All @@ -37,15 +37,15 @@ func TestMain(m *testing.M) {
}

func setup() {
home, err := util.UserHome()
home, err := gulu.OS.Home()
if nil != err {
logger.Fatal(err)
}

model.Conf = &model.Configuration{}
model.Conf.SQLite = home + "/pipe.test.db"

if util.File.IsExist(model.Conf.SQLite) {
if gulu.File.IsExist(model.Conf.SQLite) {
os.Remove(model.Conf.SQLite)
}

Expand Down

0 comments on commit be30b56

Please sign in to comment.