Skip to content

Commit aa51a8f

Browse files
fix: More tests pass in Windows (#2528)
1 parent eaea7ad commit aa51a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sidekick/internal/rust/generate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func importsModelModules(t *testing.T, filename string) {
340340
if err != nil {
341341
t.Fatal(err)
342342
}
343-
lines := strings.Split(string(contents), "\n")
343+
lines := strings.Split(strings.ReplaceAll(string(contents), "\r\n", "\n"), "\n")
344344
for _, want := range []string{"mod debug;", "mod serialize;", "mod deserialize;"} {
345345
if !slices.Contains(lines, want) {
346346
t.Errorf("expected file %s to have a line matching %q, got:\n%s", filename, want, contents)

0 commit comments

Comments
 (0)