From 4eeb7af3bbcccc9ac7529456a4b75ef770a73ef2 Mon Sep 17 00:00:00 2001 From: Frederic BIDON Date: Mon, 8 Jan 2024 16:36:22 +0100 Subject: [PATCH] fixed assertion in test for windows paths Signed-off-by: Frederic BIDON --- spec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec_test.go b/spec_test.go index a319509..cd4882a 100644 --- a/spec_test.go +++ b/spec_test.go @@ -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")) }) })