@@ -126,8 +126,10 @@ test.beforeEach( ( t ) =>
126126{
127127 process . env . GITHUB_REPOSITORY = `${
128128 // set owner to enable test on forked repositories
129- process . env . OWNER || 'Aetherinox'
130- } /delete-deploy-env-action`
129+ // if you change the repo name; must change it here, otherwise you'll get the error:
130+ // ::error::Request body length does not match content-length header
131+ process . env . OWNER || 'aetherinox'
132+ } /gh-action-delete-deploy-env`
131133 process . env . GITHUB_REF = 'main'
132134 github . context . ref = process . env . GITHUB_REF
133135
@@ -345,7 +347,7 @@ test.serial( ' Successfully remove multiple deployments only and not remove envi
345347 async ( t ) =>
346348 {
347349
348- const deployAmt = 10 // number of deployments to create
350+ const deployAmt = 5 // number of deployments to create
349351 const delayAmt = 500 // delay between each deployment removed
350352 const newRef = 'v3'
351353 const environment = 'test-remove-deployment-ref-only'
@@ -436,8 +438,8 @@ test.serial( ' Successfully deleted limited results',
436438 async ( t ) =>
437439 {
438440
439- const deployAmt = 10 // number of deployments to create
440- const delayAmt = 500 // delay between each deployment removed
441+ const deployAmt = 5 // number of deployments to create
442+ const delayAmt = 500 // delay between each deployment removed
441443 const environment = 'test-remove-deployment-ref-only'
442444 process . env . INPUT_REF = 'main'
443445
@@ -509,9 +511,9 @@ test.serial( ' Successfully deleted limited results',
509511 Test Results
510512 */
511513
512- t . truthy ( deploymentStatus )
513- t . is ( deployments . length , 6 )
514- t . is ( deployments [ 0 ] . ref , 'main' )
514+ t . truthy ( deploymentStatus ) ;
515+ t . is ( deployments . length , 1 ) ;
516+ t . is ( deployments [ 0 ] . ref , 'main' ) ;
515517
516518 /*
517519 Clean up remaining stuff left over
0 commit comments