fix IDs
This commit is contained in:
parent
e0cf1e0650
commit
aef736e991
8 changed files with 58 additions and 57 deletions
|
@ -118,10 +118,10 @@ func wsTest(t *testing.T, q chan Event, cancel func()) {
|
|||
t.Fatalf("want %q but %q", "foo", events[0].(*UpdateEvent).Status.Content)
|
||||
}
|
||||
if events[1].(*NotificationEvent).Notification.ID != "123" {
|
||||
t.Fatalf("want %d but %d", 123, events[1].(*NotificationEvent).Notification.ID)
|
||||
t.Fatalf("want %q but %q", "123", events[1].(*NotificationEvent).Notification.ID)
|
||||
}
|
||||
if events[2].(*DeleteEvent).ID != 1234567 {
|
||||
t.Fatalf("want %d but %d", 1234567, events[2].(*DeleteEvent).ID)
|
||||
if events[2].(*DeleteEvent).ID != "1234567" {
|
||||
t.Fatalf("want %q but %q", "1234567", events[2].(*DeleteEvent).ID)
|
||||
}
|
||||
if errorEvent, ok := events[3].(*ErrorEvent); !ok {
|
||||
t.Fatalf("should be fail: %v", errorEvent.err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue