Fix tests about notification.ID (which type was changed on #63)

This commit is contained in:
Kaoru HAYAMA 2017-10-25 14:24:00 +09:00
parent abf6939992
commit 74f003d4a4
2 changed files with 4 additions and 4 deletions

View file

@ -117,7 +117,7 @@ func wsTest(t *testing.T, q chan Event, cancel func()) {
if events[0].(*UpdateEvent).Status.Content != "foo" {
t.Fatalf("want %q but %q", "foo", events[0].(*UpdateEvent).Status.Content)
}
if events[1].(*NotificationEvent).Notification.ID != 123 {
if events[1].(*NotificationEvent).Notification.ID != "123" {
t.Fatalf("want %d but %d", 123, events[1].(*NotificationEvent).Notification.ID)
}
if events[2].(*DeleteEvent).ID != 1234567 {