mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add clarifying comments/docs
This commit is contained in:
parent
ab605e37df
commit
bf897c1255
@ -333,6 +333,10 @@ ulimit: open files: cannot modify limit: Operation not permitted
|
|||||||
|
|
||||||
If that happens to you, chances are you've already set a lower limit and your shell won't let you set a higher one. Try looking in your shell initialization files (~/.bashrc typically), if there's already an ulimit command that you can tweak.
|
If that happens to you, chances are you've already set a lower limit and your shell won't let you set a higher one. Try looking in your shell initialization files (~/.bashrc typically), if there's already an ulimit command that you can tweak.
|
||||||
|
|
||||||
|
### Getting `AggregateError` when building frontend tests
|
||||||
|
|
||||||
|
If you encounter an `AggregateError` when building new tests, this is probably due to a call to our client [backend service](https://github.com/grafana/grafana/blob/main/public/app/core/services/backend_srv.ts) not being mocked. Our backend service anticipates multiple responses being returned and was built to return errors as an array. A test encountering errors from the service will group those errors as an `AggregateError` without breaking down the individual errors within. `backend_srv.processRequestError` is called once per error and is a great place to return information on what the individual errors might contain.
|
||||||
|
|
||||||
## Next steps
|
## Next steps
|
||||||
|
|
||||||
- Read our [style guides](/contribute/style-guides).
|
- Read our [style guides](/contribute/style-guides).
|
||||||
|
@ -57,6 +57,8 @@ describe('AddToDashboardButton', () => {
|
|||||||
setEchoSrv(new Echo());
|
setEchoSrv(new Echo());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* The Add to dashboard form brings in the DashboardPicker, which will call backendSrv.search as part of its instantiation
|
||||||
|
If we do not need a list of dashboards for the test, return an empty array. */
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
// Mock the search response so we don't get any refused connection errors
|
// Mock the search response so we don't get any refused connection errors
|
||||||
// from this test (as the fetch polyfill means this logic would actually try and call the API)
|
// from this test (as the fetch polyfill means this logic would actually try and call the API)
|
||||||
|
Loading…
Reference in New Issue
Block a user