Commit 45fe580e authored by Sietse Ringers's avatar Sietse Ringers
Browse files

test: remove irmaclient preferences tests

parent dd13afc6
......@@ -19,6 +19,5 @@ func TestConvertingLegacyStorage(t *testing.T) {
t.Run("TestCredentialInfoListNewAttribute", TestCredentialInfoListNewAttribute)
// 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)
}
......@@ -299,21 +299,6 @@ func TestKeyshareEnrollmentRemoval(t *testing.T) {
require.NotContains(t, client.keyshareServers, "test")
}
func TestUpdatePreferences(t *testing.T) {
client, handler := parseStorage(t)
defer test.ClearTestStorage(t, handler.storage)
client.SetCrashReportingPreference(!defaultPreferences.EnableCrashReporting)
client.applyPreferences()
err := client.storage.db.Close()
require.NoError(t, err)
client, handler = parseExistingStorage(t, handler.storage)
require.NoError(t, err)
require.Equal(t, false, client.Preferences.EnableCrashReporting)
}
func TestUpdatingStorage(t *testing.T) {
client, handler := parseStorage(t)
defer test.ClearTestStorage(t, handler.storage)
......
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