Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into api-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
venkat1109 committed Feb 2, 2017
2 parents 017daa3 + 3b33c91 commit 9829670
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/integration/integration_test.go
Expand Up @@ -1270,7 +1270,6 @@ func (s *NetIntegrationSuiteParallelD) TestSmartRetryDisableDuringDLQMerge() {
DLQMessageStart = 10
DLQMessageSpacing = 6
mergeAssumedCompleteTime = cgLockTimeout * (cgMaxDeliveryCount + 1) * 2 * time.Second * 2 // +1 for initial delivery, *2 for dlqInhibit, *2 for fudge
testTimeout = time.Second * 180
)

const (
Expand Down Expand Up @@ -1471,7 +1470,6 @@ func (s *NetIntegrationSuiteParallelD) TestSmartRetryDisableDuringDLQMerge() {
s.NoError(err)

beforeMergeDLQDeliveryCount := -1
testStartTime := time.Now()

// Read the messages in a loop.
readLoop:
Expand Down Expand Up @@ -1500,17 +1498,11 @@ readLoop:
common.UnixNanoTime(time.Since(getDLQDeliveryTime())).ToSecondsFmt(),
getCurrentHealth())

if time.Since(testStartTime) > testTimeout {
s.Fail("This test should complete quickly")
break
}

switch phase {
case produceDLQ: // Normal consumption with some selected 'poison' message. This is dilute poison going to DLQ
if !poison {
ack = true
}
s.NotEqual(getCurrentHealth(), stateStalled)
if getDLQDeliveryCount() >= DLQMergeMessageTargetCount { // Produced enough DLQ, move on
phase++
}
Expand Down

0 comments on commit 9829670

Please sign in to comment.