Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vpranckaitis committed Mar 5, 2021
1 parent 5f49665 commit 05131b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/dbnode/integration/bootstrap_retries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestBootstrapRetriesDueToError(t *testing.T) {
})

go func() {
// Wait for server to start
// Wait for server to get started by the main test method.
setup.WaitUntilServerIsUp()

// First bootstrap pass. Bootstrapper produces an error. Check if DB is not marked bootstrapped.
Expand Down Expand Up @@ -105,7 +105,7 @@ func TestBootstrapRetriesDueToObsoleteRanges(t *testing.T) {
})

go func() {
// Wait for server to start
// Wait for server to get started by the main test method.
setup.WaitUntilServerIsUp()

// First bootstrap pass, persist ranges. Check if DB is not marked bootstrapped.
Expand Down Expand Up @@ -158,7 +158,7 @@ func TestBootstrapRetriesDueToUnfulfilledRanges(t *testing.T) {
})

go func() {
// Wait for server to start
// Wait for server to get started by the main test method.
setup.WaitUntilServerIsUp()

// First bootstrap pass. Bootstrap produces unfulfilled ranges for persist range.
Expand Down
6 changes: 3 additions & 3 deletions src/dbnode/storage/bootstrap_instrumentation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ func getBootstrapRetryMetrics(testScope tally.TestScope) map[string]int {
valuesByReason := make(map[string]int)
for _, counter := range testScope.Snapshot().Counters() {
if strings.Contains(counter.Name(), metricName) {
reason := ""
if r, ok := counter.Tags()[reasonTag]; ok {
valuesByReason[r] = int(counter.Value())
} else {
valuesByReason[""] = int(counter.Value())
reason = r
}
valuesByReason[reason] = int(counter.Value())
}
}
return valuesByReason
Expand Down

0 comments on commit 05131b5

Please sign in to comment.