on main help sign in
docs: todo
af1514bCarlos Alexandro Becker
internal/csync/slices_test.go+1
@@ -70,6 +70,7 @@ func TestLazySlice_EarlyBreak(t *testing.T) {
70
70
71 data := []string{"a", "b", "c", "d", "e"}
71 data := []string{"a", "b", "c", "d", "e"}
72 s := NewLazySlice(func() []string {
72 s := NewLazySlice(func() []string {
73+ // TODO: use synctest when new Go is out.
73 time.Sleep(10 * time.Millisecond) // Small delay to ensure loading happens
74 time.Sleep(10 * time.Millisecond) // Small delay to ensure loading happens
74 return data
75 return data
75 })
76 })