Fixed typo in metadata JSON key (#1733)

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
Alessandro (Ale) Segala 2022-05-19 12:35:30 -07:00 committed by GitHub
parent c2cb1dad5b
commit f7834bd232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ type metadata struct {
MaxReconnectionAttempts int `json:"maxReconnectionAttempts"`
ConnectionRecoveryInSec int `json:"connectionRecoveryInSec"`
DisableEntityManagement bool `json:"disableEntityManagement"`
MaxRetriableErrorsPerSec int `json:"MaxRetriableErrorsPerSec"`
MaxRetriableErrorsPerSec int `json:"maxRetriableErrorsPerSec"`
MaxDeliveryCount *int `json:"maxDeliveryCount"`
LockDurationInSec *int `json:"lockDurationInSec"`
DefaultMessageTimeToLiveInSec *int `json:"defaultMessageTimeToLiveInSec"`

View File

@ -300,7 +300,7 @@ func TestParseServiceBusMetadata(t *testing.T) {
assertValidErrorMessage(t, err)
})
t.Run("missing optional MaxRetriableErrorsPerSec", func(t *testing.T) {
t.Run("missing optional maxRetriableErrorsPerSec", func(t *testing.T) {
fakeProperties := getFakeProperties()
fakeMetaData := pubsub.Metadata{
@ -316,7 +316,7 @@ func TestParseServiceBusMetadata(t *testing.T) {
assert.Nil(t, err)
})
t.Run("invalid optional MaxRetriableErrorsPerSec", func(t *testing.T) {
t.Run("invalid optional maxRetriableErrorsPerSec", func(t *testing.T) {
// NaN: Not a Number
fakeProperties := getFakeProperties()