Merge pull request #1133 from trheyi/main

Fix formatting inconsistencies in test files by removing unnecessary …
This commit is contained in:
Max 2025-09-01 12:32:54 +08:00 committed by GitHub
commit 137c5fb6df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ func TestJobCRUD(t *testing.T) {
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
}
// Ensure cleanup even if test fails
defer func() {
job.RemoveJobs([]string{testJob.JobID})
@ -156,7 +156,7 @@ func TestCategoryCRUD(t *testing.T) {
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
}
// Ensure cleanup even if test fails
defer func() {
job.RemoveCategories([]string{testCategory.CategoryID})
@ -398,7 +398,7 @@ func TestLogCRUD(t *testing.T) {
if err != nil {
t.Fatalf("Failed to create test job: %v", err)
}
// Ensure cleanup even if test fails
defer func() {
job.RemoveJobs([]string{testJob.JobID})