add changelog entry and clean up a test

This commit is contained in:
David Justice 2019-07-18 14:37:38 -07:00
Родитель 8252d893f0
Коммит 233236c954
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 2B44C6BF9F416319
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -1,6 +1,7 @@
# Change Log
## `head`
- periodically refresh claims based auth for connections to resolve [issue #116](https://github.com/Azure/azure-service-bus-go/issues/116)
- refactor management functionality for entities into composition structs
- fix session deferral for queues and subscriptions
- add topic scheduled messages

Просмотреть файл

@ -2,13 +2,13 @@ package servicebus
import (
"context"
"fmt"
"math/rand"
"testing"
"time"
"github.com/Azure/azure-service-bus-go/internal/test"
"github.com/stretchr/testify/assert"
"github.com/Azure/azure-service-bus-go/internal/test"
)
func (suite *serviceBusSuite) TestQueueSendReceiveWithLock() {
@ -76,9 +76,6 @@ func testQueueSendAndReceiveWithRenewLock(ctx context.Context, t *testing.T, que
for runRenewal {
time.Sleep(renewEvery)
err := queue.RenewLocks(ctx, activeMessages...)
if err != nil {
fmt.Println(err.Error())
}
// If a renewal is taking place when the test ends
// it will fail and cause a panic without this check
if err != nil && runRenewal {