on main help sign in
fix: prevent flaky diffview golden tests on Windows CI
1bb945cKieran Klukas
internal/ui/diffview/diffview_test.go−10
@@ -212,8 +212,6 @@ func TestDiffViewWidth(t *testing.T) {
212 }
212 }
213
213
214 t.Run(fmt.Sprintf("WidthOf%03d", width), func(t *testing.T) {
214 t.Run(fmt.Sprintf("WidthOf%03d", width), func(t *testing.T) {
215− t.Parallel()
216−
217 dv := diffview.New().
215 dv := diffview.New().
218 Before("main.go", TestMultipleHunksBefore).
216 Before("main.go", TestMultipleHunksBefore).
219 After("main.go", TestMultipleHunksAfter).
217 After("main.go", TestMultipleHunksAfter).
@@ -237,8 +235,6 @@ func TestDiffViewHeight(t *testing.T) {
237 t.Run(layoutName, func(t *testing.T) {
235 t.Run(layoutName, func(t *testing.T) {
238 for height := 1; height <= 20; height++ {
236 for height := 1; height <= 20; height++ {
239 t.Run(fmt.Sprintf("HeightOf%03d", height), func(t *testing.T) {
237 t.Run(fmt.Sprintf("HeightOf%03d", height), func(t *testing.T) {
240− t.Parallel()
241−
242 dv := diffview.New().
238 dv := diffview.New().
243 Before("main.go", TestMultipleHunksBefore).
239 Before("main.go", TestMultipleHunksBefore).
244 After("main.go", TestMultipleHunksAfter).
240 After("main.go", TestMultipleHunksAfter).
@@ -260,8 +256,6 @@ func TestDiffViewXOffset(t *testing.T) {
260 t.Run(layoutName, func(t *testing.T) {
256 t.Run(layoutName, func(t *testing.T) {
261 for xOffset := range 21 {
257 for xOffset := range 21 {
262 t.Run(fmt.Sprintf("XOffsetOf%02d", xOffset), func(t *testing.T) {
258 t.Run(fmt.Sprintf("XOffsetOf%02d", xOffset), func(t *testing.T) {
263− t.Parallel()
264−
265 dv := diffview.New().
259 dv := diffview.New().
266 Before("main.go", TestDefaultBefore).
260 Before("main.go", TestDefaultBefore).
267 After("main.go", TestDefaultAfter).
261 After("main.go", TestDefaultAfter).
@@ -286,8 +280,6 @@ func TestDiffViewYOffset(t *testing.T) {
286 t.Run(layoutName, func(t *testing.T) {
280 t.Run(layoutName, func(t *testing.T) {
287 for yOffset := range 17 {
281 for yOffset := range 17 {
288 t.Run(fmt.Sprintf("YOffsetOf%02d", yOffset), func(t *testing.T) {
282 t.Run(fmt.Sprintf("YOffsetOf%02d", yOffset), func(t *testing.T) {
289− t.Parallel()
290−
291 dv := diffview.New().
283 dv := diffview.New().
292 Before("main.go", TestMultipleHunksBefore).
284 Before("main.go", TestMultipleHunksBefore).
293 After("main.go", TestMultipleHunksAfter).
285 After("main.go", TestMultipleHunksAfter).
@@ -310,8 +302,6 @@ func TestDiffViewYOffsetInfinite(t *testing.T) {
310 t.Run(layoutName, func(t *testing.T) {
302 t.Run(layoutName, func(t *testing.T) {
311 for yOffset := range 17 {
303 for yOffset := range 17 {
312 t.Run(fmt.Sprintf("YOffsetOf%02d", yOffset), func(t *testing.T) {
304 t.Run(fmt.Sprintf("YOffsetOf%02d", yOffset), func(t *testing.T) {
313− t.Parallel()
314−
315 dv := diffview.New().
305 dv := diffview.New().
316 Before("main.go", TestMultipleHunksBefore).
306 Before("main.go", TestMultipleHunksBefore).
317 After("main.go", TestMultipleHunksAfter).
307 After("main.go", TestMultipleHunksAfter).