Skip to content

Commit

Permalink
fix(i): Update fetcher mock (#1926)
Browse files Browse the repository at this point in the history
## Relevant issue(s)

Resolves #1887

## Description

Updates the fetcher mock.
  • Loading branch information
AndrewSisley authored Oct 4, 2023
1 parent 3f9decc commit 04a20e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 136 deletions.
130 changes: 0 additions & 130 deletions db/fetcher/mocks/fetcher.go

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

6 changes: 0 additions & 6 deletions db/fetcher/mocks/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ package mocks
import (
"testing"

"github.com/sourcenetwork/defradb/client"
"github.com/sourcenetwork/defradb/core"

"github.com/stretchr/testify/mock"
)

Expand All @@ -33,9 +30,6 @@ func NewStubbedFetcher(t *testing.T) *Fetcher {
).Maybe().Return(nil)
f.EXPECT().Start(mock.Anything, mock.Anything).Maybe().Return(nil)
f.EXPECT().FetchNext(mock.Anything).Maybe().Return(nil, nil)
f.EXPECT().FetchNextDoc(mock.Anything, mock.Anything).Maybe().
Return(NewEncodedDocument(t), core.Doc{}, nil)
f.EXPECT().FetchNextDecoded(mock.Anything).Maybe().Return(&client.Document{}, nil)
f.EXPECT().Close().Maybe().Return(nil)
return f
}

0 comments on commit 04a20e3

Please sign in to comment.