database: fix notification test (wrong signature)

pull/71/head
Quentin Machu 8 years ago committed by Jimmy Zelinskie
parent 45ed80df1b
commit b5d8f9952e

@ -94,7 +94,7 @@ func TestNotification(t *testing.T) {
},
},
}
assert.Nil(t, datastore.insertVulnerability(v1, false))
assert.Nil(t, datastore.insertVulnerability(v1, false, true))
// Get the notification associated to the previously inserted vulnerability.
notification, err := datastore.GetAvailableNotification(time.Second)
@ -158,7 +158,7 @@ func TestNotification(t *testing.T) {
},
}
if assert.Nil(t, datastore.insertVulnerability(v1b, false)) {
if assert.Nil(t, datastore.insertVulnerability(v1b, false, true)) {
notification, err = datastore.GetAvailableNotification(time.Second)
assert.Nil(t, err)
assert.NotEmpty(t, notification.Name)

Loading…
Cancel
Save