Merged in feature/removejob (pull request #95)
Remove Job * removejob * rmjob * sync * cleanup * precommit * startslow * startslow * startslow * openapi * clean * test * scripts * littlecleanercmds * mermaid
This commit is contained in:
@@ -71,9 +71,9 @@ func TestDocCleanRunner(t *testing.T) {
|
||||
}
|
||||
|
||||
doc := document.Document{
|
||||
ID: bod.ID,
|
||||
JobID: uuid.New(),
|
||||
Hash: "example_hash",
|
||||
ID: bod.ID,
|
||||
ClientID: uuid.New(),
|
||||
Hash: "example_hash",
|
||||
}
|
||||
inloc := document.Location{
|
||||
Bucket: "bucket_name",
|
||||
@@ -87,8 +87,8 @@ func TestDocCleanRunner(t *testing.T) {
|
||||
)
|
||||
pool.ExpectQuery("name: GetDocument :one").WithArgs(dbid).
|
||||
WillReturnRows(
|
||||
pgxmock.NewRows([]string{"id", "jobId", "hash"}).
|
||||
AddRow(dbid, database.MustToDBUUID(doc.JobID), doc.Hash),
|
||||
pgxmock.NewRows([]string{"id", "clientId", "hash"}).
|
||||
AddRow(dbid, database.MustToDBUUID(doc.ClientID), doc.Hash),
|
||||
)
|
||||
pool.ExpectQuery("name: GetDocumentEntry :one").WithArgs(dbid).WillReturnRows(
|
||||
pgxmock.NewRows([]string{"documentId", "bucket", "key"}).
|
||||
|
||||
Reference in New Issue
Block a user