mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/integration: fix args format in Errorf/Printf
This commit is contained in:
parent
9bfe617728
commit
86aafcd15a
@ -66,7 +66,7 @@ func TestLeaseRevoke(t *testing.T) {
|
||||
|
||||
_, err = lapi.Revoke(context.Background(), lease.LeaseID(resp.ID))
|
||||
if err != nil {
|
||||
t.Errorf("failed to revoke lease", err)
|
||||
t.Errorf("failed to revoke lease %v", err)
|
||||
}
|
||||
|
||||
_, err = kv.Put("foo", "bar", lease.LeaseID(resp.ID))
|
||||
@ -91,7 +91,7 @@ func TestLeaseKeepAliveOnce(t *testing.T) {
|
||||
|
||||
_, err = lapi.KeepAliveOnce(context.Background(), lease.LeaseID(resp.ID))
|
||||
if err != nil {
|
||||
t.Errorf("failed to keepalive lease", err)
|
||||
t.Errorf("failed to keepalive lease %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,7 @@ func memberAddCommandFunc(cmd *cobra.Command, args []string) {
|
||||
ExitWithError(ExitError, err)
|
||||
}
|
||||
|
||||
fmt.Printf("Member %16x added to cluster %16x\n", args[0], resp.Member.ID, resp.Header.ClusterId)
|
||||
fmt.Printf("Member %16x added to cluster %16x\n", resp.Member.ID, resp.Header.ClusterId)
|
||||
}
|
||||
|
||||
// memberRemoveCommandFunc executes the "member remove" command.
|
||||
|
Loading…
x
Reference in New Issue
Block a user