Skip to content

Commit 4eeb7af

Browse files
committed
fixed assertion in test for windows paths
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 3121b63 commit 4eeb7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestSpec_Issue2743(t *testing.T) {
3737
t.Run("all $ref do not resolve when expanding again", func(t *testing.T) {
3838
err := spec.ExpandSpec(sp, &spec.ExpandOptions{RelativeBase: path, SkipSchemas: false, PathLoader: testLoader})
3939
require.Error(t, err)
40-
require.ErrorContains(t, err, "swagger/paths/swagger/user/index.yml: no such file or directory")
40+
require.ErrorContains(t, err, filepath.FromSlash("swagger/paths/swagger/user/index.yml: no such file or directory"))
4141
})
4242
})
4343

0 commit comments

Comments
 (0)