A few fixes for API daily test execution (#40180)
* Make check conditional * Changelog * Refactor based on PR feedback --------- Co-authored-by: Jon Lane <jon.lane@automattic.com>
This commit is contained in:
parent
5c7698a9ad
commit
76cc38d7bd
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
A few fixes for API daily test flakiness
|
|
@ -171,7 +171,8 @@ test.describe.serial( 'Shipping zones API tests', () => {
|
|||
const putResponseStateOnlyJSON = await putResponseStateOnly.json();
|
||||
await expect( putResponseStateOnly.status() ).toEqual( 200 );
|
||||
|
||||
await expect( putResponseStateOnlyJSON ).toHaveLength(0);
|
||||
// running on external hosts, this can be 0 or 1
|
||||
expect([0, 1]).toContain(putResponseStateOnlyJSON.length);
|
||||
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in New Issue