snapcore / spread

Spread - Convenient full-system test (task) distribution
GNU General Public License v3.0
99 stars 58 forks source link

google: mark cache as ready after it got populated #175

Open mvo5 opened 11 months ago

mvo5 commented 11 months ago

The googleImagesCache is currently not marked ready. This means while it is correctly build it is not used in subsequent calls to projectImages(). This commit set the cache to ready after it got populated.

The first commit fixes the issue, the second adds the test that shows the behavior. Happy to talk about the test more, it makes google a bit easier to test but maybe you prefer a different approach :)