Tricentis / qTest.Integration.Pulse

MIT License
12 stars 12 forks source link

delivery script reads length of bufferSize as string instead of number #13

Closed qaschris closed 5 months ago

qaschris commented 5 months ago

Expected Behavior

In https://github.com/Tricentis/qTest.Integration.Pulse/blob/master/delivery/node.js/delivery.js, when bufferSize is compared to the MB payload cap of 50, it should be able to read the payload size as a number.

Current Behavior

bufferSize is being read as a string and the comparison is thrown off as the object types are not equivalent.

Possible Solution

cast bufferSize as a Number when comparing it to 50.