mirror of
https://github.com/gofiber/fiber.git
synced 2025-07-12 07:08:20 +00:00
🩹 update monitor test case
This commit is contained in:
parent
6520705c57
commit
9856573d41
@ -54,6 +54,8 @@ func New() fiber.Handler {
|
||||
|
||||
p, _ := process.NewProcess(int32(os.Getpid()))
|
||||
|
||||
updateStatistics(p)
|
||||
|
||||
go func() {
|
||||
for {
|
||||
updateStatistics(p)
|
||||
|
@ -59,7 +59,6 @@ func Test_Monitor_JSON(t *testing.T) {
|
||||
utils.AssertEqual(t, nil, err)
|
||||
utils.AssertEqual(t, true, bytes.Contains(b, []byte("pid")))
|
||||
utils.AssertEqual(t, true, bytes.Contains(b, []byte("os")))
|
||||
utils.AssertEqual(t, true, bytes.Contains(b, []byte("conns")))
|
||||
}
|
||||
|
||||
// go test -v -run=^$ -bench=Benchmark_Monitor -benchmem -count=4
|
||||
|
Loading…
x
Reference in New Issue
Block a user