File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import (
26
26
"github.com/google/go-cmp/cmp/cmpopts"
27
27
"github.com/stretchr/testify/assert"
28
28
"k8s.io/apimachinery/pkg/types"
29
+ "sigs.k8s.io/gateway-api-inference-extension/api/v1alpha2"
29
30
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/datastore"
30
31
)
31
32
68
69
},
69
70
},
70
71
}
72
+
73
+ inferencePool = & v1alpha2.InferencePool {
74
+ Spec : v1alpha2.InferencePoolSpec {
75
+ TargetPortNumber : 8000 ,
76
+ },
77
+ }
71
78
)
72
79
73
80
func TestProvider (t * testing.T ) {
@@ -127,7 +134,7 @@ func TestProvider(t *testing.T) {
127
134
128
135
for _ , test := range tests {
129
136
t .Run (test .name , func (t * testing.T ) {
130
- ds := datastore .NewFakeDatastore (test .storePods , nil , nil )
137
+ ds := datastore .NewFakeDatastore (test .storePods , nil , inferencePool )
131
138
p := NewProvider (test .pmc , ds )
132
139
ctx , cancel := context .WithCancel (context .Background ())
133
140
defer cancel ()
You can’t perform that action at this time.
0 commit comments