Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixture tests sometime fail because cache hasn't finished writing to disk #3

Closed
aroben opened this issue Mar 16, 2012 · 0 comments
Closed
Labels

Comments

@aroben
Copy link
Contributor

aroben commented Mar 16, 2012

Sometimes when I run the Akavache tests I see failures like this:

Test 'Akavache.Tests.PersistentBlobCacheInterfaceFixture.CacheShouldBeRoundtrippable' failed: System.IO.IOException : The process cannot access the file 'C:\Users\Adam Roben\Documents\GitHub\Windows\Akavache\Akavache.Tests\bin\Debug\f4d14bf2-deb3-45d4-9457-f376ab69d3ea\1356c67d7ad1638d816bfb822dd2c25d' because it is being used by another process.
    at System.Reactive.ExceptionHelpers.Throw[T](Exception exception)
    at System.Reactive.Linq.Observable.FirstOrDefaultInternal[TSource](IObservable`1 source, Boolean throwOnEmpty)
    at System.Reactive.Linq.Observable.First[TSource](IObservable`1 source)
    BlobCacheFixture.cs(65,0): at Akavache.Tests.BlobCacheInterfaceFixture.CacheShouldBeRoundtrippable()

Test 'Akavache.Tests.EncryptedBlobCacheInterfaceFixture.CacheShouldBeRoundtrippable' failed: System.IO.IOException : The process cannot access the file 'C:\Users\Adam Roben\Documents\GitHub\Windows\Akavache\Akavache.Tests\bin\Debug\f901b928-26f0-474a-8408-bb9311450866\1356c67d7ad1638d816bfb822dd2c25d' because it is being used by another process.
    at System.Reactive.ExceptionHelpers.Throw[T](Exception exception)
    at System.Reactive.Linq.Observable.FirstOrDefaultInternal[TSource](IObservable`1 source, Boolean throwOnEmpty)
    at System.Reactive.Linq.Observable.First[TSource](IObservable`1 source)
    BlobCacheFixture.cs(65,0): at Akavache.Tests.BlobCacheInterfaceFixture.CacheShouldBeRoundtrippable()

It looks like the cache gets flushed to disk asynchronously and that these tests aren't waiting for it to complete before trying to use the cache files again.

@aroben aroben closed this as completed in b7ecb20 Mar 16, 2012
@lock lock bot added the outdated label Jun 25, 2019
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant