Skip to content

Commit 1337fca

Browse files
committed
Change test file to make OLMVariableSource responsible for fetching
Signed-off-by: jubittajohn <[email protected]>
1 parent a496d68 commit 1337fca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/resolution/resolver_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ func TestOperatorResolver(t *testing.T) {
9898
},
9999
} {
100100
t.Run(tt.name, func(t *testing.T) {
101-
resolver := resolution.NewOperatorResolver(tt.client, tt.entitySource)
102-
solution, err := resolver.Resolve(context.Background())
101+
variableSource := olm.NewOLMVariableSource(tt.client)
102+
resolver := solver.NewDeppySolver(tt.entitySource, variableSource)
103+
solution, err := resolver.Solve(context.Background())
103104

104105
if tt.expectedError != nil {
105106
assert.Equal(t, tt.expectedError, err)

0 commit comments

Comments
 (0)