Merged in feature/textextraction (pull request #110)
Text Extraction * bases * go * splitting * structure * movetoasync * movetoasync * settinguptrigger * reorder * storevent * standardisepollingvalidation * unittests * fixlint * fixlint * awscfg * generatesample * followthrough * tests * clena * store * externalidcleanup * clientid * local * baseunittests * putobjecttests * tests
This commit is contained in:
@@ -31,7 +31,7 @@ func (s *Service) Sync(ctx context.Context, id uuid.UUID) error {
|
||||
err = s.cfg.SendToQueue(ctx, &queue.SendParams{
|
||||
QueueURL: s.cfg.GetDocumentCleanURL(),
|
||||
Body: doccleanrunner.Body{
|
||||
ID: id,
|
||||
DocumentID: id,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
@@ -37,7 +37,7 @@ func TestSync(t *testing.T) {
|
||||
})
|
||||
|
||||
j := client.Client{
|
||||
ID: uuid.New(),
|
||||
ID: "clientid",
|
||||
CanSync: true,
|
||||
}
|
||||
doc := document.DocumentSummary{
|
||||
@@ -52,8 +52,8 @@ func TestSync(t *testing.T) {
|
||||
AddRow(doc.ID, doc.ClientID, doc.Hash),
|
||||
)
|
||||
pool.ExpectQuery("name: GetClient :one").WithArgs(j.ID).WillReturnRows(
|
||||
pgxmock.NewRows([]string{"id", "externalId", "name", "canSync"}).
|
||||
AddRow(j.ID, "id", "client_name", true),
|
||||
pgxmock.NewRows([]string{"id", "name", "canSync"}).
|
||||
AddRow(j.ID, "client_name", true),
|
||||
)
|
||||
|
||||
mockSQS.EXPECT().
|
||||
|
||||
Reference in New Issue
Block a user