Fix GetTimelineHashtag
This commit is contained in:
parent
b8fe5a0533
commit
a4904109e4
2 changed files with 9 additions and 4 deletions
|
@ -374,11 +374,11 @@ func TestGetTimelineHashtag(t *testing.T) {
|
|||
ClientSecret: "bar",
|
||||
AccessToken: "zoo",
|
||||
})
|
||||
_, err := client.GetTimelineHashtag(context.Background(), "notfound")
|
||||
_, err := client.GetTimelineHashtag(context.Background(), "notfound", false)
|
||||
if err == nil {
|
||||
t.Fatalf("should be fail: %v", err)
|
||||
}
|
||||
tags, err := client.GetTimelineHashtag(context.Background(), "zzz")
|
||||
tags, err := client.GetTimelineHashtag(context.Background(), "zzz", true)
|
||||
if err != nil {
|
||||
t.Fatalf("should not be fail: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue