浏览代码

integration: add want IDs to Errorf calls

Shawn Smith 10 年之前
父节点
当前提交
7abbd31fcd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      integration/v3_grpc_test.go

+ 2 - 2
integration/v3_grpc_test.go

@@ -1223,7 +1223,7 @@ func TestV3LeaseCreateByID(t *testing.T) {
 		t.Errorf("could not create lease 1 (%v)", err)
 	}
 	if lresp.ID != 1 {
-		t.Errorf("got id %v, wanted id %v", lresp.ID)
+		t.Errorf("got id %v, wanted id %v", lresp.ID, 1)
 	}
 
 	// create duplicate fixed lease
@@ -1245,7 +1245,7 @@ func TestV3LeaseCreateByID(t *testing.T) {
 		t.Errorf("could not create lease 2 (%v)", err)
 	}
 	if lresp.ID != 2 {
-		t.Errorf("got id %v, wanted id %v", lresp.ID)
+		t.Errorf("got id %v, wanted id %v", lresp.ID, 2)
 	}
 
 }