Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Feb 16, 2024
1 parent 7c884df commit 646974e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions go/vt/vttablet/tabletserver/vstreamer/helper_event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ package vstreamer
import (
"context"
"fmt"
"slices"
"strconv"
"strings"
"testing"
Expand Down Expand Up @@ -424,10 +425,8 @@ func getMetadataKey(table, col string) string {

func (ts *TestSpec) setMetadataMap(table, col, value string) {
values := strings.Split(value, ",")
valuesReversed := make([]string, len(values))
for i, v := range values {
valuesReversed[len(values)-1-i] = v
}
valuesReversed := slices.Clone(values)
slices.Reverse(valuesReversed)
ts.metadata[getMetadataKey(table, col)] = valuesReversed
}

Expand Down

0 comments on commit 646974e

Please sign in to comment.