Azure-Samples / Iot-Telemetry-Simulator

The IoT Telemetry Simulator allows you to test Azure IoT Hub or Eventhub ingestion at scale. The implementation is communicating with Azure IoT Hub using multiplexed AMQP connections. An automation library allows you to run it as load test as part of a CI/CD pipeline.
MIT License
67 stars 49 forks source link

TemplateVariableSubstitutionTest.GetTestData() fails when run on a system configured to use anything else but "." as decimal separator #33

Closed TechPreacher closed 3 years ago

TechPreacher commented 3 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

TemplateVariableSubstitutionTest.GetTestData() fails when run on a system configured to use anything else but "." as a decimal separator as the expected result is as string has a hard-coded "." in $"Hello, World! I like some_data, -0.5 and , World.".

Expected/desired behavior

This needs to be a double cast to a string by the system that's running the test so the decimal separator gets replaced with the proper symbol.

OS and Version?

Windows 10 set to Greek Date/Time/Number formats.


Thanks! We'll be in touch soon.

TechPreacher commented 3 years ago

Closed by merge