@@ -86,7 +86,7 @@ func TestActionsService_ListCaches_notFound(t *testing.T) {
8686 ctx := context .Background ()
8787 caches , resp , err := client .Actions .ListCaches (ctx , "o" , "r" , nil )
8888 if err == nil {
89- t .Errorf ("Expected HTTP 404 response" )
89+ t .Error ("Expected HTTP 404 response" )
9090 }
9191 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
9292 t .Errorf ("Actions.ListCaches return status %d, want %d" , got , want )
@@ -151,7 +151,7 @@ func TestActionsService_DeleteCachesByKey_notFound(t *testing.T) {
151151 ctx := context .Background ()
152152 resp , err := client .Actions .DeleteCachesByKey (ctx , "o" , "r" , "1" , Ptr ("main" ))
153153 if err == nil {
154- t .Errorf ("Expected HTTP 404 response" )
154+ t .Error ("Expected HTTP 404 response" )
155155 }
156156 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
157157 t .Errorf ("Actions.DeleteCachesByKey return status %d, want %d" , got , want )
@@ -213,7 +213,7 @@ func TestActionsService_DeleteCachesByID_notFound(t *testing.T) {
213213 ctx := context .Background ()
214214 resp , err := client .Actions .DeleteCachesByID (ctx , "o" , "r" , 1 )
215215 if err == nil {
216- t .Errorf ("Expected HTTP 404 response" )
216+ t .Error ("Expected HTTP 404 response" )
217217 }
218218 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
219219 t .Errorf ("Actions.DeleteCachesByID return status %d, want %d" , got , want )
@@ -291,7 +291,7 @@ func TestActionsService_GetCacheUsageForRepo_notFound(t *testing.T) {
291291 ctx := context .Background ()
292292 caches , resp , err := client .Actions .GetCacheUsageForRepo (ctx , "o" , "r" )
293293 if err == nil {
294- t .Errorf ("Expected HTTP 404 response" )
294+ t .Error ("Expected HTTP 404 response" )
295295 }
296296 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
297297 t .Errorf ("Actions.GetCacheUsageForRepo return status %d, want %d" , got , want )
@@ -364,7 +364,7 @@ func TestActionsService_ListCacheUsageByRepoForOrg_notFound(t *testing.T) {
364364 ctx := context .Background ()
365365 caches , resp , err := client .Actions .ListCacheUsageByRepoForOrg (ctx , "o" , nil )
366366 if err == nil {
367- t .Errorf ("Expected HTTP 404 response" )
367+ t .Error ("Expected HTTP 404 response" )
368368 }
369369 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
370370 t .Errorf ("Actions.ListCacheUsageByRepoForOrg return status %d, want %d" , got , want )
@@ -435,7 +435,7 @@ func TestActionsService_GetCacheUsageForOrg_notFound(t *testing.T) {
435435 ctx := context .Background ()
436436 caches , resp , err := client .Actions .GetTotalCacheUsageForOrg (ctx , "o" )
437437 if err == nil {
438- t .Errorf ("Expected HTTP 404 response" )
438+ t .Error ("Expected HTTP 404 response" )
439439 }
440440 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
441441 t .Errorf ("Actions.GetTotalCacheUsageForOrg return status %d, want %d" , got , want )
@@ -506,7 +506,7 @@ func TestActionsService_GetCacheUsageForEnterprise_notFound(t *testing.T) {
506506 ctx := context .Background ()
507507 caches , resp , err := client .Actions .GetTotalCacheUsageForEnterprise (ctx , "o" )
508508 if err == nil {
509- t .Errorf ("Expected HTTP 404 response" )
509+ t .Error ("Expected HTTP 404 response" )
510510 }
511511 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
512512 t .Errorf ("Actions.GetTotalCacheUsageForEnterprise return status %d, want %d" , got , want )
0 commit comments