Merged in feature/docresult (pull request #105)
Document Result Endpoint * testing * cleantesting * progress * query * lint * readme * dockerclient * api * passtest * tests * test
This commit is contained in:
@@ -67,7 +67,7 @@ func TestDocCleanRunner(t *testing.T) {
|
||||
Body: &body,
|
||||
}
|
||||
|
||||
doc := document.Document{
|
||||
doc := document.DocumentSummary{
|
||||
ID: bod.ID,
|
||||
ClientID: uuid.New(),
|
||||
Hash: "example_hash",
|
||||
@@ -82,7 +82,7 @@ func TestDocCleanRunner(t *testing.T) {
|
||||
pgxmock.NewRows([]string{"isclean"}).
|
||||
AddRow(false),
|
||||
)
|
||||
pool.ExpectQuery("name: GetDocument :one").WithArgs(dbid).
|
||||
pool.ExpectQuery("name: GetDocumentSummary :one").WithArgs(dbid).
|
||||
WillReturnRows(
|
||||
pgxmock.NewRows([]string{"id", "clientId", "hash"}).
|
||||
AddRow(dbid, database.MustToDBUUID(doc.ClientID), doc.Hash),
|
||||
|
||||
Reference in New Issue
Block a user