Skip to content

Commit

Permalink
test(bigtable): print hex using %x, sprintf to be valid utf-8 (#4565)
Browse files Browse the repository at this point in the history
casting byte vals to string was causing some chars to be (randomly) invalid for identifiers
  • Loading branch information
crwilcox committed Aug 6, 2021
1 parent 6f9c98f commit cb8ca90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigtable/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2462,7 +2462,7 @@ func TestIntegration_AdminBackup(t *testing.T) {
t.Fatalf("Failed to generate a unique ID: %v", err)
}

backupName := "mybackup-" + string(uniqueID)
backupName := fmt.Sprintf("mybackup-%x", uniqueID)
defer adminClient.DeleteBackup(ctx, sourceCluster, backupName)

if err = adminClient.CreateBackup(ctx, tblConf.TableID, sourceCluster, backupName, time.Now().Add(8*time.Hour)); err != nil {
Expand Down

0 comments on commit cb8ca90

Please sign in to comment.