Skip to content

Commit

Permalink
Change test file to make OLMVariableSource responsible for fetching
Browse files Browse the repository at this point in the history
Signed-off-by: jubittajohn <jujohn@redhat.com>
  • Loading branch information
jubittajohn committed Jun 8, 2023
1 parent a496d68 commit 1337fca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/resolution/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ func TestOperatorResolver(t *testing.T) {
},
} {
t.Run(tt.name, func(t *testing.T) {
resolver := resolution.NewOperatorResolver(tt.client, tt.entitySource)
solution, err := resolver.Resolve(context.Background())
variableSource := olm.NewOLMVariableSource(tt.client)
resolver := solver.NewDeppySolver(tt.entitySource, variableSource)
solution, err := resolver.Solve(context.Background())

if tt.expectedError != nil {
assert.Equal(t, tt.expectedError, err)
Expand Down

0 comments on commit 1337fca

Please sign in to comment.