File: fix-fixtures-pathname-in-test-case.patch

package info (click to toggle)
golang-github-go-openapi-loads 0.21.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 1,212 kB
  • sloc: makefile: 3
file content (20 lines) | stat: -rw-r--r-- 599 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix fixtures pathname in test case
Author: Guillem Jover <gjover@sipwise.com>
Origin: vendor
Forwarded: no

---
 loads_test/spec_circular_test.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/loads_test/spec_circular_test.go
+++ b/loads_test/spec_circular_test.go
@@ -11,7 +11,7 @@ import (
 )
 
 func TestPathLoaderIssue(t *testing.T) {
-	swaggerFile := "fixtures/json/resources/pathLoaderIssue.json"
+	swaggerFile := "../fixtures/json/resources/pathLoaderIssue.json"
 	document, err := loads.Spec(swaggerFile)
 	require.NoError(t, err)
 	require.NotNil(t, document)