Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
false);
nit: Add a comment to investigate why this is the only test that fails without nested runloops, starting with `// TODO(crbug.com/328783999): `.
Also, it'd be great of course if you could find the reason why this test needs the nested runloops! But fixing that can be done in a follow up.
// TODO(https://crbug.com/328783999): Avoid nested runloops by default.
nit: Remove this line.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
false);
nit: Add a comment to investigate why this is the only test that fails without nested runloops, starting with `// TODO(crbug.com/328783999): `.
Also, it'd be great of course if you could find the reason why this test needs the nested runloops! But fixing that can be done in a follow up.
I suspect this test needs nested run loops because it runs asynchronous code, as explained in the comment in line 1266. For reference test `DropSeveralMimeTypes` in this same file uses a run loop in it's body and has a similar explanation.
// TODO(https://crbug.com/328783999): Avoid nested runloops by default.
Miguel López Lópeznit: Remove this line.
Done
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
all tests except for WaylandDataDragControllerTest.PostToServerAndWait
nit: WaylandDataDragControllerTest.DropWhileFetchingData
false);
Miguel López Lópeznit: Add a comment to investigate why this is the only test that fails without nested runloops, starting with `// TODO(crbug.com/328783999): `.
Also, it'd be great of course if you could find the reason why this test needs the nested runloops! But fixing that can be done in a follow up.
I suspect this test needs nested run loops because it runs asynchronous code, as explained in the comment in line 1266. For reference test `DropSeveralMimeTypes` in this same file uses a run loop in it's body and has a similar explanation.
I see. I think what `DropSeveralMimeTypes` does, i.e. having a `RunLoop` in the test directly, is the better approach. So please add a comment like this:
```
// TODO(crbug.com/328783999): Use a RunLoop here (like in DropSeveralMimeTypes) so
we can pass `no_nested_runloops=true` to `PostToServerAndWait()`.
```
and make the change in a follow up. The condition when to quit the `RunLoop` in the test might be non-trivial, so I think it's better to decouple it from this CL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
false);
Miguel López Lópeznit: Add a comment to investigate why this is the only test that fails without nested runloops, starting with `// TODO(crbug.com/328783999): `.
Also, it'd be great of course if you could find the reason why this test needs the nested runloops! But fixing that can be done in a follow up.
Max IhlenfeldtI suspect this test needs nested run loops because it runs asynchronous code, as explained in the comment in line 1266. For reference test `DropSeveralMimeTypes` in this same file uses a run loop in it's body and has a similar explanation.
I see. I think what `DropSeveralMimeTypes` does, i.e. having a `RunLoop` in the test directly, is the better approach. So please add a comment like this:
```
// TODO(crbug.com/328783999): Use a RunLoop here (like in DropSeveralMimeTypes) so
we can pass `no_nested_runloops=true` to `PostToServerAndWait()`.
```
and make the change in a follow up. The condition when to quit the `RunLoop` in the test might be non-trivial, so I think it's better to decouple it from this CL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
all tests except for WaylandDataDragControllerTest.PostToServerAndWait
Miguel López Lópeznit: WaylandDataDragControllerTest.DropWhileFetchingData
Done
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
orko could you PTAL, as you were the one working on nested-loop-less waits for unit tests? thanks
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Tentative +1.
If lacros bots are still running it maybe a good idea to check none of the ozone_unittests for lacros are failing as a result.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Thanks Orko.
Assuming ozone unit tests run successfully in both linux/wayland and lacros try bots, it should be ok to land this.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Avoid nested runloops by default in PostToServerAndWait()
Tests seem to work just fine after setting no_nested_runloops to true in
all tests except for WaylandDataDragControllerTest.DropWhileFetchingData
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |