Skip to content

Commit

Permalink
tests: fix InviteLink test case
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Oct 2, 2022
1 parent 30fcc2b commit 81fbf73
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions bot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,24 +618,12 @@ func TestBot(t *testing.T) {

sleep()

inviteLink, err = b.CreateInviteLink(&Chat{ID: chatID}, nil)
require.NoError(t, err)
assert.True(t, len(inviteLink.InviteLink) > 0)

sleep()

response, err := b.EditInviteLink(&Chat{ID: chatID}, &ChatInviteLink{InviteLink: inviteLink.InviteLink})
require.NoError(t, err)
assert.True(t, len(response.InviteLink) > 0)

sleep()

inviteLink, err = b.CreateInviteLink(&Chat{ID: chatID}, nil)
require.Nil(t, err)
assert.True(t, len(inviteLink.InviteLink) > 0)

sleep()

response, err = b.RevokeInviteLink(&Chat{ID: chatID}, inviteLink.InviteLink)
require.Nil(t, err)
assert.True(t, len(response.InviteLink) > 0)
Expand Down

0 comments on commit 81fbf73

Please sign in to comment.