Skip to content

Commit 5832fdf

Browse files
committed
chore(process): open file in process test case
1 parent a60c462 commit 5832fdf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

process/process_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,9 @@ func Test_CPUTimes(t *testing.T) {
657657
}
658658

659659
func Test_OpenFiles(t *testing.T) {
660+
fp, err := os.Open("process_test.go")
661+
defer fp.Close()
662+
660663
pid := os.Getpid()
661664
p, err := NewProcess(int32(pid))
662665
skipIfNotImplementedErr(t, err)

v3/process/process_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,9 @@ func Test_CPUTimes(t *testing.T) {
659659
}
660660

661661
func Test_OpenFiles(t *testing.T) {
662+
fp, err := os.Open("process_test.go")
663+
defer fp.Close()
664+
662665
pid := os.Getpid()
663666
p, err := NewProcess(int32(pid))
664667
skipIfNotImplementedErr(t, err)

0 commit comments

Comments
 (0)