Commit 70e08ff7 authored by Ivar Derksen's avatar Ivar Derksen Committed by Sietse Ringers

Added test to check for successful storage update

parent 1bffbbb6
......@@ -20,4 +20,5 @@ func TestConvertingLegacyStorage(t *testing.T) {
// TestFreshStorage is not needed, because this test does not use an existing storage
t.Run("TestKeyshareEnrollmentRemoval", TestKeyshareEnrollmentRemoval)
t.Run("TestUpdatePreferences", TestUpdatePreferences)
t.Run("TestUpdatingStorage", TestUpdatingStorage)
}
......@@ -350,6 +350,17 @@ func TestUpdatePreferences(t *testing.T) {
require.Equal(t, false, client.Preferences.EnableCrashReporting)
}
func TestUpdatingStorage(t *testing.T) {
client := parseStorage(t)
defer test.ClearTestStorage(t)
require.NotNil(t, client)
// Check whether all update functions succeeded
for _, u := range client.updates {
require.Equal(t, true, u.Success)
}
}
// ------
type TestClientHandler struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment