We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb66a7 commit 03c4fb6Copy full SHA for 03c4fb6
sdk/cosmosdb/cosmos/test/public/functional/offer.spec.ts
@@ -117,8 +117,8 @@ describe("NodeJS CRUD Tests", function() {
117
await client.offer(offerBadId._self).replace(offerBadId);
118
assert.fail("Must throw after replace with bad id");
119
} catch (err) {
120
- const badRequestErrorCode = 400;
121
- assert.equal(err.code, badRequestErrorCode);
+ // check for 400 or 401 since some backends validate auth first
+ assert(err.code === 400 || err.code === 401);
122
}
123
});
124
0 commit comments