Fix formatting inconsistencies in test files by removing unnecessary blank lines
- Cleaned up the TestJobCRUD, TestCategoryCRUD, and TestLogCRUD functions in data_test.go by removing extra blank lines, improving code readability and consistency.
This commit is contained in:
parent
a1869726d5
commit
2c541adbbb
1 changed files with 3 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ func TestJobCRUD(t *testing.T) {
|
||||||
CreatedAt: time.Now(),
|
CreatedAt: time.Now(),
|
||||||
UpdatedAt: time.Now(),
|
UpdatedAt: time.Now(),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure cleanup even if test fails
|
// Ensure cleanup even if test fails
|
||||||
defer func() {
|
defer func() {
|
||||||
job.RemoveJobs([]string{testJob.JobID})
|
job.RemoveJobs([]string{testJob.JobID})
|
||||||
|
|
@ -156,7 +156,7 @@ func TestCategoryCRUD(t *testing.T) {
|
||||||
CreatedAt: time.Now(),
|
CreatedAt: time.Now(),
|
||||||
UpdatedAt: time.Now(),
|
UpdatedAt: time.Now(),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure cleanup even if test fails
|
// Ensure cleanup even if test fails
|
||||||
defer func() {
|
defer func() {
|
||||||
job.RemoveCategories([]string{testCategory.CategoryID})
|
job.RemoveCategories([]string{testCategory.CategoryID})
|
||||||
|
|
@ -398,7 +398,7 @@ func TestLogCRUD(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Failed to create test job: %v", err)
|
t.Fatalf("Failed to create test job: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure cleanup even if test fails
|
// Ensure cleanup even if test fails
|
||||||
defer func() {
|
defer func() {
|
||||||
job.RemoveJobs([]string{testJob.JobID})
|
job.RemoveJobs([]string{testJob.JobID})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue