Skip to content

Commit

Permalink
feat: change DefaultVisibilityTimeoutInSeconds to 30
Browse files Browse the repository at this point in the history
seconds
  • Loading branch information
vvatanabe committed Dec 3, 2023
1 parent 4846ca0 commit 7bea14d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
DefaultTableName = "dynamo-mq-table"
DefaultQueueingIndexName = "dynamo-mq-index-queue_type-queue_add_timestamp"
DefaultRetryMaxAttempts = 10
DefaultVisibilityTimeoutInSeconds = 60
DefaultVisibilityTimeoutInSeconds = 30
DefaultMaxListMessages = 10
DefaultQueryLimit = 250
)
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func TestDynamoMQClientReceiveMessage(t *testing.T) {
name: "should return EmptyQueueError when exists message but visibility timeout is not expired",
setup: NewSetupFunc(newPutRequestWithProcessingItem("B-202", test.DefaultTestDate)),
sdkClock: mock.Clock{
T: test.DefaultTestDate.Add(59 * time.Second),
T: test.DefaultTestDate.Add(29 * time.Second),
},
want: nil,
wantErr: &dynamomq.EmptyQueueError{},
Expand Down

0 comments on commit 7bea14d

Please sign in to comment.