Skip to content

Commit

Permalink
chore: update tests to use latest option
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
  • Loading branch information
spiffcs committed Apr 18, 2024
1 parent dca1b38 commit 0cc76e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grype/matcher/golang/matcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ func TestMatcher_DropMainPackageIfNoVersion(t *testing.T) {
subjectWithMainModuleAsDevel := subjectWithMainModule
subjectWithMainModuleAsDevel.Version = "(devel)"

matcher := NewGolangMatcher(MatcherConfig{})
matcher := NewGolangMatcher(MatcherConfig{
AllowMainModulePseudoVersionComparison: true,
})
store := newMockProvider()

preTest, _ := matcher.Match(store, nil, subjectWithoutMainModule)
Expand Down

0 comments on commit 0cc76e8

Please sign in to comment.