Skip to content

Commit

Permalink
Update TROUBLESHOOT.md (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c authored May 22, 2024
1 parent 9b53584 commit bd93b7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/leak_tracking/TROUBLESHOOT.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ await gesture.up();
await tester.pumpAndSettle();
```

### 3. The test is leaking Image, ImageInfo or ImageStreamCompleterHandle

If your test is creating images that are designed to stay in the cache, you need to invoke `imageCache.clear()`
after the test.
Add it to`tearDownAll` to optimize for testing performance. Add it to`tearDown` to optimize for test isolation.

## Get additional information

To understand the root cause of a memory leak, you may want to gather additional information.
Expand Down

0 comments on commit bd93b7e

Please sign in to comment.