Skip to content

Commit 6b3feb5

Browse files
Marat-Timdaveshanley
authored andcommitted
fix test
1 parent 4fe687b commit 6b3feb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

functions/openapi/operation_tag_defined_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ func TestOperd_GetSchema(t *testing.T) {
2323

2424
func TestTagDefined_RunRule(t *testing.T) {
2525
def := TagDefined{}
26-
res := def.RunRule(nil, model.RuleFunctionContext{})
26+
context := model.RuleFunctionContext{}
27+
context.Index = index.NewSpecIndexWithConfig(nil, index.CreateOpenAPIIndexConfig())
28+
res := def.RunRule(nil, context)
2729
assert.Len(t, res, 0)
2830
}
2931

0 commit comments

Comments
 (0)