Skip to content

Commit

Permalink
fixed assertion in test for windows paths
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
  • Loading branch information
fredbi committed Jan 8, 2024
1 parent 3121b63 commit 4eeb7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestSpec_Issue2743(t *testing.T) {
t.Run("all $ref do not resolve when expanding again", func(t *testing.T) {
err := spec.ExpandSpec(sp, &spec.ExpandOptions{RelativeBase: path, SkipSchemas: false, PathLoader: testLoader})
require.Error(t, err)
require.ErrorContains(t, err, "swagger/paths/swagger/user/index.yml: no such file or directory")
require.ErrorContains(t, err, filepath.FromSlash("swagger/paths/swagger/user/index.yml: no such file or directory"))
})
})

Expand Down

0 comments on commit 4eeb7af

Please sign in to comment.