[monitor-query][test] logsQueryClient unit test should not rely on ServiceClient internals #21551
Labels
Client
This issue points to a problem in the data-plane of the library.
Monitor
Monitor, Monitor Ingestion, Monitor Query
test-reliability
Issue that causes tests to be unreliable
Milestone
Currently the test passes a custom endpoint via option then verify that private/protected properties of the generated client are set.
azure-sdk-for-js/sdk/monitor/monitor-query/test/internal/unit/logsQueryClient.unittest.spec.ts
Lines 35 to 36 in 07a98c6
We can improve the test by testing that the option is passed to ServiceClient via a mock, instead of verifying the internals of ServiceClient.
The text was updated successfully, but these errors were encountered: