mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-18 20:59:48 -04:00
additional changes to reduce concurrency risk
This commit is contained in:
@@ -166,7 +166,7 @@ public class PreferencesTest {
|
||||
Preferences preferences = Preferences.get();
|
||||
// serialize an empty map
|
||||
preferences.setMirrorErrorData(new HashMap<>(0));
|
||||
HashMap<String, Integer> result = preferences.getMirrorErrorData();
|
||||
Map<String, Integer> result = preferences.getMirrorErrorData();
|
||||
// deserializing should return an empty map without throwing any exceptions
|
||||
assertNotNull(result);
|
||||
assertEquals(result.size(), 0);
|
||||
|
||||
Reference in New Issue
Block a user