this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

pkg/path: fix test failures when executed with -count N

When executed with `go test -count 2`, the global array of test cases
was overridden with expectations for Windows and then re-used for
Unix tests.

Signed-off-by: Roman Mazur <roman@rmazur.io>
Change-Id: Idcb1f0126598391d41de32f1fde282c1bc9ccbc2
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1225628
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>

authored by

Roman Mazur and committed by
Daniel Martí
1bfde52f cc3d92d7

+2 -2
+2 -2
pkg/path/path_test.go
··· 379 379 } 380 380 381 381 func TestBase(t *testing.T) { 382 - tests := basetests 383 382 testEachOS(t, []OS{Unix, Windows}, func(t *testing.T, os OS) { 383 + tests := slices.Clone(basetests) 384 384 if os == Windows { 385 385 // make unix tests work on windows 386 386 for i := range tests { ··· 426 426 427 427 func TestDir(t *testing.T) { 428 428 testEachOS(t, []OS{Unix, Windows}, func(t *testing.T, os OS) { 429 - tests := dirtests 429 + tests := slices.Clone(dirtests) 430 430 if os == Windows { 431 431 // make unix tests work on windows 432 432 for i := range tests {