@@ -28,7 +28,7 @@ func (t *closureTransport) RoundTrip(req *http.Request) (*http.Response, error)
2828func TestUserAgentHeader (t * testing.T ) {
2929 var userAgent string
3030 client := imagekit .NewClient (
31- option .WithPrivateAPIKey ("My Private API Key" ),
31+ option .WithPrivateKey ("My Private Key" ),
3232 option .WithPassword ("My Password" ),
3333 option .WithHTTPClient (& http.Client {
3434 Transport : & closureTransport {
@@ -53,7 +53,7 @@ func TestUserAgentHeader(t *testing.T) {
5353func TestRetryAfter (t * testing.T ) {
5454 retryCountHeaders := make ([]string , 0 )
5555 client := imagekit .NewClient (
56- option .WithPrivateAPIKey ("My Private API Key" ),
56+ option .WithPrivateKey ("My Private Key" ),
5757 option .WithPassword ("My Password" ),
5858 option .WithHTTPClient (& http.Client {
5959 Transport : & closureTransport {
@@ -91,7 +91,7 @@ func TestRetryAfter(t *testing.T) {
9191func TestDeleteRetryCountHeader (t * testing.T ) {
9292 retryCountHeaders := make ([]string , 0 )
9393 client := imagekit .NewClient (
94- option .WithPrivateAPIKey ("My Private API Key" ),
94+ option .WithPrivateKey ("My Private Key" ),
9595 option .WithPassword ("My Password" ),
9696 option .WithHTTPClient (& http.Client {
9797 Transport : & closureTransport {
@@ -125,7 +125,7 @@ func TestDeleteRetryCountHeader(t *testing.T) {
125125func TestOverwriteRetryCountHeader (t * testing.T ) {
126126 retryCountHeaders := make ([]string , 0 )
127127 client := imagekit .NewClient (
128- option .WithPrivateAPIKey ("My Private API Key" ),
128+ option .WithPrivateKey ("My Private Key" ),
129129 option .WithPassword ("My Password" ),
130130 option .WithHTTPClient (& http.Client {
131131 Transport : & closureTransport {
@@ -159,7 +159,7 @@ func TestOverwriteRetryCountHeader(t *testing.T) {
159159func TestRetryAfterMs (t * testing.T ) {
160160 attempts := 0
161161 client := imagekit .NewClient (
162- option .WithPrivateAPIKey ("My Private API Key" ),
162+ option .WithPrivateKey ("My Private Key" ),
163163 option .WithPassword ("My Password" ),
164164 option .WithHTTPClient (& http.Client {
165165 Transport : & closureTransport {
@@ -189,7 +189,7 @@ func TestRetryAfterMs(t *testing.T) {
189189
190190func TestContextCancel (t * testing.T ) {
191191 client := imagekit .NewClient (
192- option .WithPrivateAPIKey ("My Private API Key" ),
192+ option .WithPrivateKey ("My Private Key" ),
193193 option .WithPassword ("My Password" ),
194194 option .WithHTTPClient (& http.Client {
195195 Transport : & closureTransport {
@@ -213,7 +213,7 @@ func TestContextCancel(t *testing.T) {
213213
214214func TestContextCancelDelay (t * testing.T ) {
215215 client := imagekit .NewClient (
216- option .WithPrivateAPIKey ("My Private API Key" ),
216+ option .WithPrivateKey ("My Private Key" ),
217217 option .WithPassword ("My Password" ),
218218 option .WithHTTPClient (& http.Client {
219219 Transport : & closureTransport {
@@ -245,7 +245,7 @@ func TestContextDeadline(t *testing.T) {
245245
246246 go func () {
247247 client := imagekit .NewClient (
248- option .WithPrivateAPIKey ("My Private API Key" ),
248+ option .WithPrivateKey ("My Private Key" ),
249249 option .WithPassword ("My Password" ),
250250 option .WithHTTPClient (& http.Client {
251251 Transport : & closureTransport {
0 commit comments