@@ -189,6 +189,34 @@ func TestNewProvider(t *testing.T) {
189189 WithProviderID ("testProvider" ),
190190 },
191191 },
192+ {
193+ name : "with selector only with in-process resolver" ,
194+ expectedResolver : inProcess ,
195+ expectHost : defaultHost ,
196+ expectPort : defaultInProcessPort ,
197+ expectCacheType : defaultCache ,
198+ expectCacheSize : defaultMaxCacheSize ,
199+ expectMaxRetries : defaultMaxEventStreamRetries ,
200+ expectSelector : "flags=test" ,
201+ options : []ProviderOption {
202+ WithInProcessResolver (),
203+ WithSelector ("flags=test" ),
204+ },
205+ },
206+ {
207+ name : "with providerID only with in-process resolver" ,
208+ expectedResolver : inProcess ,
209+ expectHost : defaultHost ,
210+ expectPort : defaultInProcessPort ,
211+ expectCacheType : defaultCache ,
212+ expectCacheSize : defaultMaxCacheSize ,
213+ expectMaxRetries : defaultMaxEventStreamRetries ,
214+ expectProviderID : "testProvider" ,
215+ options : []ProviderOption {
216+ WithInProcessResolver (),
217+ WithProviderID ("testProvider" ),
218+ },
219+ },
192220 }
193221
194222 for _ , test := range tests {
0 commit comments