@@ -10,7 +10,7 @@ import (
1010
1111 blog "github.com/letsencrypt/boulder/log"
1212 "github.com/letsencrypt/boulder/metrics"
13- salesforcepb "github.com/letsencrypt/boulder/salesforce/proto"
13+ emailpb "github.com/letsencrypt/boulder/salesforce/email /proto"
1414 "github.com/letsencrypt/boulder/test"
1515
1616 "github.com/prometheus/client_golang/prometheus"
@@ -75,7 +75,7 @@ func TestSendContacts(t *testing.T) {
7575 defer cleanup ()
7676
7777 wantContacts := []string {"test@example.com" , "user@example.com" }
78- _ , err := exporter .SendContacts (ctx , & salesforcepb .SendContactsRequest {
78+ _ , err := exporter .SendContacts (ctx , & emailpb .SendContactsRequest {
7979 Emails : wantContacts ,
8080 })
8181 test .AssertNotError (t , err , "Error creating contacts" )
@@ -104,7 +104,7 @@ func TestSendContactsQueueFull(t *testing.T) {
104104
105105 var err error
106106 for range contactsQueueCap * 2 {
107- _ , err = exporter .SendContacts (ctx , & salesforcepb .SendContactsRequest {
107+ _ , err = exporter .SendContacts (ctx , & emailpb .SendContactsRequest {
108108 Emails : []string {"test@example.com" },
109109 })
110110 if err != nil {
@@ -125,7 +125,7 @@ func TestSendContactsQueueDrains(t *testing.T) {
125125 emails = append (emails , fmt .Sprintf ("test@%d.example.com" , i ))
126126 }
127127
128- _ , err := exporter .SendContacts (ctx , & salesforcepb .SendContactsRequest {
128+ _ , err := exporter .SendContacts (ctx , & emailpb .SendContactsRequest {
129129 Emails : emails ,
130130 })
131131 test .AssertNotError (t , err , "Error creating contacts" )
@@ -153,7 +153,7 @@ func TestSendContactsErrorMetrics(t *testing.T) {
153153 daemonCtx , cancel := context .WithCancel (context .Background ())
154154 exporter .Start (daemonCtx )
155155
156- _ , err := exporter .SendContacts (ctx , & salesforcepb .SendContactsRequest {
156+ _ , err := exporter .SendContacts (ctx , & emailpb .SendContactsRequest {
157157 Emails : []string {"test@example.com" },
158158 })
159159 test .AssertNotError (t , err , "Error creating contacts" )
@@ -176,7 +176,7 @@ func TestSendContactDeduplication(t *testing.T) {
176176 daemonCtx , cancel := context .WithCancel (context .Background ())
177177 exporter .Start (daemonCtx )
178178
179- _ , err := exporter .SendContacts (ctx , & salesforcepb .SendContactsRequest {
179+ _ , err := exporter .SendContacts (ctx , & emailpb .SendContactsRequest {
180180 Emails : []string {"duplicate@example.com" , "duplicate@example.com" },
181181 })
182182 test .AssertNotError (t , err , "Error enqueuing contacts" )
@@ -208,7 +208,7 @@ func TestSendContactErrorRemovesFromCache(t *testing.T) {
208208 daemonCtx , cancel := context .WithCancel (context .Background ())
209209 exporter .Start (daemonCtx )
210210
211- _ , err := exporter .SendContacts (ctx , & salesforcepb .SendContactsRequest {
211+ _ , err := exporter .SendContacts (ctx , & emailpb .SendContactsRequest {
212212 Emails : []string {"error@example.com" },
213213 })
214214 test .AssertNotError (t , err , "enqueue failed" )
0 commit comments