Skip to content

Commit

Permalink
database: fix notification test (wrong signature)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-M authored and jzelinskie committed Feb 24, 2016
1 parent 45ed80d commit b5d8f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/pgsql/notification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b5d8f99

Please sign in to comment.