Remember to wrap the synctest in a run for the name of the thing

This commit is contained in:
Micheal Wilkinson
2026-03-17 21:34:17 +00:00
parent 26b16cc411
commit d32d8bd696

View File

@@ -47,7 +47,7 @@ func TestCreateNote(t *testing.T) {
}
repo := repository.NewNoteRepository(&mockNoteStore{})
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
synctest.Test(t, func(t *testing.T) {
note, err := repo.CreateNote(tc.content)
if tc.expectedError {
@@ -70,6 +70,7 @@ func TestCreateNote(t *testing.T) {
}
fmt.Printf("Test case '%s' passed.\n", tc.name)
})
})
}
}