update gfpool test2

This commit is contained in:
zcool321@sina.com 2019-06-16 00:07:06 +08:00
parent 4f007fdd44
commit 68d8e25bc4

View File

@ -9,10 +9,6 @@ import (
"time"
)
var (
testErrFile = "errorPath"
)
func TestOpen(t *testing.T) {
testFile := start("TestOpen.txt")
@ -35,8 +31,8 @@ func TestOpen(t *testing.T) {
}
func TestOpenErr(t *testing.T) {
gtest.Case(t, func() {
testErrFile := "errorPath"
_, err := gfpool.Open(testErrFile, os.O_RDWR, 0666)
gtest.AssertNE(err, nil)
})