Skip to content

Commit

Permalink
Fixed bgwriter test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Grigorev committed Sep 9, 2024
1 parent 3239125 commit 676849f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/collector/postgres_bgwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package collector

import (
"database/sql"
"github.com/jackc/pgproto3/v2"
"testing"

"github.com/cherts/pgscv/internal/model"
"github.com/jackc/pgproto3/v2"
"github.com/stretchr/testify/assert"
"testing"
)

func TestPostgresBgwriterCollector_Update(t *testing.T) {
Expand Down Expand Up @@ -58,7 +59,7 @@ func Test_parsePostgresBgwriterStats(t *testing.T) {
},
want: postgresBgwriterStat{
ckptTimed: 55, ckptReq: 17, ckptWriteTime: 548425, ckptSyncTime: 5425, ckptBuffers: 5482, bgwrBuffers: 7584, bgwrMaxWritten: 452,
backendBuffers: 6895, backendFsync: 2, backendAllocated: 48752, statsAgeSeconds: 5488,
backendBuffers: 6895, backendFsync: 2, backendAllocated: 48752, bgwrStatsAgeSeconds: 5488,
},
},
}
Expand Down

0 comments on commit 676849f

Please sign in to comment.