Skip to content

Commit

Permalink
Merge pull request #1337 from ably/fix-auth-test-state-leak
Browse files Browse the repository at this point in the history
test: unset mutated client requestHeaders after test complete
  • Loading branch information
owenpearson authored Jun 13, 2023
2 parents d67eb7c + 108f048 commit 3915bcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/rest/auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ define(['chai', 'shared_helper', 'async', 'globals'], function (chai, helper, as
}
rest.auth.authOptions.requestHeaders = authHeaders;
rest.auth.requestToken(function (err, tokenDetails) {
delete rest.auth.authOptions.requestHeaders;
if (err) {
done(err);
return;
Expand Down

0 comments on commit 3915bcd

Please sign in to comment.