339 Actions
revised
Adding a new HandlerInterceptor causes many existing tests to fail — how to fix or isolate it?
deleted 9 characters in body
Loading...
comment
Adding a new HandlerInterceptor causes many existing tests to fail — how to fix or isolate it?
I am not finding it weird. Its expected that all my tests with api calls( 200 of them ) are failed. But i would like to know what is the best way to fix it. DO i need to go in every tests and put doNothing() or do i need to put condition on interceptor and so on. I am seeking for cleaniest solution
asked
Loading...
awarded
awarded
awarded
awarded
comment
Custom JSON Console Formatter in OpenTelemetry: How to align a Custom Log Exporter
@MartinDotNet I guess would be great if you can guide on how to achieve this log format alignment. Any specific resources, examples, or detailed steps would be greatly appreciated or you see only OTLP option?
comment
Dependency not getting mocked in unit test
Are you trying to create a unit or integration test? Because it looks a hybrid to me
comment
Force float value when using JSON
Thanks @jabaa I understood. Generally, I am working with displays and monitors in medicine and I want to show the temperature as 10.0 C to 25.5 for example. But it always converts to 10 to 25.5.
answered
Loading...
comment
Force float value when using JSON
@jabaa I found the similar result what i want and edited question
revised
Force float value when using JSON
added 289 characters in body; edited title
Loading...
comment
Force float value when using JSON
@Pointy I understand the issue. Even after making changes to received data, when I send it back to the backend, the numbers are being converted to integers (e.g., 10, 20) instead of remaining in their original float format (e.g., 10.0, 20.0). However, I need to preserve the original format (10.0, 20.0) when storing data on the backend.
comment
Force float value when using JSON
Main issue that backend sent me data with floating numbers and i am returning number without floating. So basically it has incorrect data. But i need all decimals to show it in display monitors
comment
Force float value when using JSON
@James toFixed gives me "10.0" but i want to retain it as number
Loading...
answered
Loading...