diff options
Diffstat (limited to 'models/gpg_key_test.go')
-rw-r--r-- | models/gpg_key_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/gpg_key_test.go b/models/gpg_key_test.go index 687e0cd594..6b34b10760 100644 --- a/models/gpg_key_test.go +++ b/models/gpg_key_test.go @@ -219,6 +219,7 @@ Q0KHb+QcycSgbDx0ZAvdIacuKvBBcbxrsmFUI4LR+oIup0G9gUc0roPvr014jYQL key, err := AddGPGKey(1, testEmailWithUpperCaseLetters) assert.NoError(t, err) - assert.Len(t, key.Emails, 1) - assert.Equal(t, "user1@example.com", key.Emails[0].Email) + if assert.Len(t, key.Emails, 1) { + assert.Equal(t, "user1@example.com", key.Emails[0].Email) + } } |