Fix tests about notification.ID (which type was changed on #63)
This commit is contained in:
parent
abf6939992
commit
74f003d4a4
2 changed files with 4 additions and 4 deletions
|
@ -39,17 +39,17 @@ func TestGetNotifications(t *testing.T) {
|
|||
if len(ns) != 2 {
|
||||
t.Fatalf("result should be two: %d", len(ns))
|
||||
}
|
||||
if ns[0].ID != 122 {
|
||||
if ns[0].ID != "122" {
|
||||
t.Fatalf("want %v but %v", 122, ns[0].ID)
|
||||
}
|
||||
if ns[1].ID != 123 {
|
||||
if ns[1].ID != "123" {
|
||||
t.Fatalf("want %v but %v", 123, ns[1].ID)
|
||||
}
|
||||
n, err := client.GetNotification(context.Background(), 123)
|
||||
if err != nil {
|
||||
t.Fatalf("should not be fail: %v", err)
|
||||
}
|
||||
if n.ID != 123 {
|
||||
if n.ID != "123" {
|
||||
t.Fatalf("want %v but %v", 123, n.ID)
|
||||
}
|
||||
err = client.ClearNotifications(context.Background())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue