mirror of
https://gitee.com/johng/gf.git
synced 2024-12-01 11:48:09 +08:00
update gfpool test2
This commit is contained in:
parent
4f007fdd44
commit
68d8e25bc4
@ -9,10 +9,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
testErrFile = "errorPath"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestOpen(t *testing.T) {
|
func TestOpen(t *testing.T) {
|
||||||
testFile := start("TestOpen.txt")
|
testFile := start("TestOpen.txt")
|
||||||
|
|
||||||
@ -35,8 +31,8 @@ func TestOpen(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOpenErr(t *testing.T) {
|
func TestOpenErr(t *testing.T) {
|
||||||
|
|
||||||
gtest.Case(t, func() {
|
gtest.Case(t, func() {
|
||||||
|
testErrFile := "errorPath"
|
||||||
_, err := gfpool.Open(testErrFile, os.O_RDWR, 0666)
|
_, err := gfpool.Open(testErrFile, os.O_RDWR, 0666)
|
||||||
gtest.AssertNE(err, nil)
|
gtest.AssertNE(err, nil)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user