@@ -179,13 +179,13 @@ func TestBuildBrowserPod(t *testing.T) {
179179
180180func TestParseSelenosisOptionsInvalidJSON (t * testing.T ) {
181181 ann := map [string ]string {
182- selenosisOptionsAnnotationKey : "{nope" ,
182+ browserv1 . SelenosisOptionsAnnotationKey : "{nope" ,
183183 }
184184 _ , err := parseSelenosisOptions (ann )
185185 if err == nil {
186186 t .Fatalf ("expected error" )
187187 }
188- if ! strings .Contains (err .Error (), selenosisOptionsAnnotationKey ) {
188+ if ! strings .Contains (err .Error (), browserv1 . SelenosisOptionsAnnotationKey ) {
189189 t .Fatalf ("expected error to mention annotation key, got %v" , err )
190190 }
191191}
@@ -199,7 +199,7 @@ func TestParseSelenosisOptionsEmpty(t *testing.T) {
199199 t .Fatalf ("expected nil options for nil annotations" )
200200 }
201201
202- opts , err = parseSelenosisOptions (map [string ]string {selenosisOptionsAnnotationKey : "" })
202+ opts , err = parseSelenosisOptions (map [string ]string {browserv1 . SelenosisOptionsAnnotationKey : "" })
203203 if err != nil {
204204 t .Fatalf ("expected no error, got %v" , err )
205205 }
@@ -210,7 +210,7 @@ func TestParseSelenosisOptionsEmpty(t *testing.T) {
210210
211211func TestParseSelenosisOptionsValidJSON (t * testing.T ) {
212212 ann := map [string ]string {
213- selenosisOptionsAnnotationKey : `{"labels":{"a":"b"},"containers":{"browser":{"env":{"X":"1"}}}}` ,
213+ browserv1 . SelenosisOptionsAnnotationKey : `{"labels":{"a":"b"},"containers":{"browser":{"env":{"X":"1"}}}}` ,
214214 }
215215 opts , err := parseSelenosisOptions (ann )
216216 if err != nil {
@@ -378,7 +378,7 @@ func TestHandleMissingPodInvalidSelenosisOptions(t *testing.T) {
378378 Name : "b1" ,
379379 Namespace : "ns" ,
380380 Annotations : map [string ]string {
381- selenosisOptionsAnnotationKey : "{bad-json" ,
381+ browserv1 . SelenosisOptionsAnnotationKey : "{bad-json" ,
382382 },
383383 },
384384 Spec : browserv1.BrowserSpec {
0 commit comments