File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ linters:
40
40
- paralleltest
41
41
- cyclop # because we have gocyclo already
42
42
# TODO: review the linters below. We disabled them to make the CI pass first.
43
- - gocritic
44
43
- containedctx
45
44
- ireturn
46
45
- varnamelen
Original file line number Diff line number Diff line change @@ -194,8 +194,7 @@ func TestOptionalJSONSchemaSuite(t *testing.T) {
194
194
195
195
// Further testing with all formats recognized by strfmt
196
196
func TestFormat_JSONSchemaExtended (t * testing.T ) {
197
- jsonFormatSchemaFixturesPath := filepath .Join (formatFixturesPath )
198
- files , err := ioutil .ReadDir (jsonFormatSchemaFixturesPath )
197
+ files , err := ioutil .ReadDir (formatFixturesPath )
199
198
if err != nil {
200
199
t .Fatal (err )
201
200
}
@@ -213,7 +212,7 @@ func TestFormat_JSONSchemaExtended(t *testing.T) {
213
212
return
214
213
}
215
214
t .Log ("Running [extended formats] " + specName )
216
- b , _ := ioutil .ReadFile (filepath .Join (jsonFormatSchemaFixturesPath , fileName ))
215
+ b , _ := ioutil .ReadFile (filepath .Join (formatFixturesPath , fileName ))
217
216
doTestSchemaSuite (t , b )
218
217
})
219
218
}
You can’t perform that action at this time.
0 commit comments