Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
70e08ff7
Commit
70e08ff7
authored
Jan 31, 2020
by
Ivar Derksen
Committed by
Sietse Ringers
Feb 05, 2020
Browse files
Added test to check for successful storage update
parent
1bffbbb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
irmaclient/irmaclient_legacy_test.go
View file @
70e08ff7
...
...
@@ -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
)
}
irmaclient/irmaclient_test.go
View file @
70e08ff7
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment