Skip to content

Commit

Permalink
chore(deps): copy code from unmatinained dep
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
  • Loading branch information
janisz committed Oct 24, 2023
1 parent 2c8f4b3 commit 53233d7
Show file tree
Hide file tree
Showing 9 changed files with 241 additions and 339 deletions.
Empty file.
6 changes: 2 additions & 4 deletions central/debug/service/service_test.go
Expand Up @@ -9,7 +9,6 @@ import (
"testing"
"time"

"github.com/driftprogramming/pgxpoolmock"
"github.com/pkg/errors"
configMocks "github.com/stackrox/rox/central/config/datastore/mocks"
"github.com/stackrox/rox/central/globaldb"
Expand All @@ -19,6 +18,7 @@ import (
"github.com/stackrox/rox/generated/storage"
permissionsMocks "github.com/stackrox/rox/pkg/auth/permissions/mocks"
"github.com/stackrox/rox/pkg/httputil/mock"
pkgmocks "github.com/stackrox/rox/pkg/mocks/github.com/jackc/pgx/v5/mocks"
"github.com/stackrox/rox/pkg/postgres/mocks"
"github.com/stackrox/rox/pkg/sac"
"github.com/stackrox/rox/pkg/version/testutils"
Expand Down Expand Up @@ -188,9 +188,7 @@ func (s *debugServiceTestSuite) TestGetBundle() {
w := mock.NewResponseWriter()
testutils.SetVersion(s.T(), testutils.GetExampleVersion(s.T()))
db := mocks.NewMockDB(s.mockCtrl)
pgxRows := pgxpoolmock.NewRows([]string{"server_version"}).AddRow("15.1").ToPgxRows()
// Workaround for https://github.com/driftprogramming/pgxpoolmock/issues/8
pgxRows.Next()
pgxRows := pkgmocks.NewRows([]string{"server_version"}).AddRow("15.1").ToPgxRows()
db.EXPECT().QueryRow(gomock.Any(), "SHOW server_version;").Return(pgxRows)
globaldb.SetPostgresTest(s.T(), db)

Expand Down
Empty file.
1 change: 0 additions & 1 deletion go.mod
Expand Up @@ -31,7 +31,6 @@ require (
github.com/docker/docker v23.0.6+incompatible
github.com/docker/go-connections v0.4.0
github.com/docker/go-units v0.5.0
github.com/driftprogramming/pgxpoolmock v1.1.0
github.com/facebookincubator/nvdtools v0.1.5
github.com/fatih/color v1.15.0
github.com/fullsailor/pkcs7 v0.0.0
Expand Down
136 changes: 0 additions & 136 deletions go.sum

Large diffs are not rendered by default.

197 changes: 2 additions & 195 deletions pkg/mocks/github.com/jackc/pgx/v5/mocks/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 53233d7

Please sign in to comment.