diff --git a/pkg/database/scrape_history_test.go b/pkg/database/scrape_history_test.go index 867a731..e96795e 100644 --- a/pkg/database/scrape_history_test.go +++ b/pkg/database/scrape_history_test.go @@ -81,7 +81,7 @@ func TestCreateScrapeHistory(t *testing.T) { } validScrapeHistory := models.ScrapeHistory{ - ScrapeTaskID: "valid_task_id", + ScrapeTaskID: "000000000000valid_task_id", UserSourceID: validUSerSource.ID, } @@ -181,7 +181,7 @@ func TestGetScrapeHistoryByID(t *testing.T) { } validScrapeHistory := models.ScrapeHistory{ - ScrapeTaskID: "valid_task_id", + ScrapeTaskID: "000000000000valid_task_id", UserSourceID: validUSerSource.ID, } @@ -196,7 +196,7 @@ func TestGetScrapeHistoryByID(t *testing.T) { id models.ScrapeTaskID wantErr bool }{ - {"Valid ID", "valid_task_id", false}, + {"Valid ID", "000000000000valid_task_id", false}, {"Empty ID", "", true}, {"Non-existent ID", "non_existent_id", true}, } @@ -279,7 +279,7 @@ func TestUpdateScrapeHistory(t *testing.T) { } validScrapeHistory := models.ScrapeHistory{ - ScrapeTaskID: "valid_task_id", + ScrapeTaskID: "000000000000valid_task_id", UserSourceID: validUSerSource.ID, } @@ -380,7 +380,7 @@ func TestDeleteScrapeHistory(t *testing.T) { } validScrapeHistory := models.ScrapeHistory{ - ScrapeTaskID: "valid_task_id", + ScrapeTaskID: "000000000000valid_task_id", UserSourceID: validUSerSource.ID, } @@ -395,7 +395,7 @@ func TestDeleteScrapeHistory(t *testing.T) { id models.ScrapeTaskID wantErr bool }{ - {"Valid ID", "valid_task_id", false}, + {"Valid ID", "000000000000valid_task_id", false}, {"Empty ID", "", true}, {"Short ID", "short_id", true}, }