mirror of
https://gitee.com/johng/gf.git
synced 2024-12-01 03:38:35 +08:00
update gfpool test2
This commit is contained in:
parent
4f007fdd44
commit
68d8e25bc4
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user