Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
twthorn committed Aug 12, 2024
1 parent e21588e commit 934acc7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions go/vt/wrangler/traffic_switcher_env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ package wrangler
import (
"fmt"
"math/rand"
"strconv"
"strings"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -378,9 +380,10 @@ func newTestTablePartialMigrater(ctx context.Context, t *testing.T, shards, shar
now := time.Now().Unix()

for i, shard := range shards {
for _, shardToMove := range shardsToMove {
for j, shardToMove := range shardsToMove {
var streamInfoRows []string
var streamExtInfoRows []string
var vreplIDs []string
if shardToMove == shard {
bls := &binlogdatapb.BinlogSource{
Keyspace: "ks1",
Expand All @@ -397,8 +400,10 @@ func newTestTablePartialMigrater(ctx context.Context, t *testing.T, shards, shar
}
streamInfoRows = append(streamInfoRows, fmt.Sprintf("%d|%v|||", i+1, bls))
streamExtInfoRows = append(streamExtInfoRows, fmt.Sprintf("%d|||||Running|vt_ks1|%d|%d|0|0||||0", i+1, now, now))
vreplIDs = append(vreplIDs, strconv.FormatInt(int64(j+1), 10))
}
tme.dbTargetClients[i].addInvariant(fmt.Sprintf(copyStateQuery, i+1, i+1), noResult)
vreplIDsJoined := strings.Join(vreplIDs, ", ")
tme.dbTargetClients[i].addInvariant(fmt.Sprintf(copyStateQuery, vreplIDsJoined, vreplIDsJoined), noResult)

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

printf: fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string (govet)

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

printf: fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string (govet)

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / test

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / test

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / test

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / test

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / test

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / test

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string

Check failure on line 406 in go/vt/wrangler/traffic_switcher_env_test.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

fmt.Sprintf format %d has arg vreplIDsJoined of wrong type string
tme.dbTargetClients[i].addInvariant(streamInfoKs2, sqltypes.MakeTestResult(sqltypes.MakeTestFields(
"id|source|message|cell|tablet_types",
"int64|varchar|varchar|varchar|varchar"),
Expand Down

0 comments on commit 934acc7

Please sign in to comment.