Skip to content

Commit

Permalink
more reliable check
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Mar 27, 2024
1 parent 7ed2a00 commit 4f09e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ testUtils.getServerType = function (cb) {
return response.json();
}).then(function (res) {
console.log('getServerType()', JSON.stringify(res));
for (const known in knownServers) {
if (known in res) {
for (const known of knownServers) {
if (res[known]) {
return cb(known);
}
}
Expand Down

0 comments on commit 4f09e57

Please sign in to comment.