@@ -278,7 +278,7 @@ func TestClient(t *testing.T) {
278278 if len (tpl ) != 3 {
279279 t .Errorf ("Unexpected body of Insert (tuple len)" )
280280 }
281- if id , ok := tpl [0 ].(int64 ); ! ok || id != 1 {
281+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 1 {
282282 t .Errorf ("Unexpected body of Insert (0)" )
283283 }
284284 if h , ok := tpl [1 ].(string ); ! ok || h != "hello" {
@@ -310,7 +310,7 @@ func TestClient(t *testing.T) {
310310 if len (tpl ) != 3 {
311311 t .Errorf ("Unexpected body of Delete (tuple len)" )
312312 }
313- if id , ok := tpl [0 ].(int64 ); ! ok || id != 1 {
313+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 1 {
314314 t .Errorf ("Unexpected body of Delete (0)" )
315315 }
316316 if h , ok := tpl [1 ].(string ); ! ok || h != "hello" {
@@ -352,7 +352,7 @@ func TestClient(t *testing.T) {
352352 if len (tpl ) != 3 {
353353 t .Errorf ("Unexpected body of Replace (tuple len)" )
354354 }
355- if id , ok := tpl [0 ].(int64 ); ! ok || id != 2 {
355+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 2 {
356356 t .Errorf ("Unexpected body of Replace (0)" )
357357 }
358358 if h , ok := tpl [1 ].(string ); ! ok || h != "hi" {
@@ -377,7 +377,7 @@ func TestClient(t *testing.T) {
377377 if len (tpl ) != 2 {
378378 t .Errorf ("Unexpected body of Update (tuple len)" )
379379 }
380- if id , ok := tpl [0 ].(int64 ); ! ok || id != 2 {
380+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 2 {
381381 t .Errorf ("Unexpected body of Update (0)" )
382382 }
383383 if h , ok := tpl [1 ].(string ); ! ok || h != "bye" {
@@ -421,7 +421,7 @@ func TestClient(t *testing.T) {
421421 if tpl , ok := resp .Data [0 ].([]interface {}); ! ok {
422422 t .Errorf ("Unexpected body of Select" )
423423 } else {
424- if id , ok := tpl [0 ].(int64 ); ! ok || id != 10 {
424+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 10 {
425425 t .Errorf ("Unexpected body of Select (0)" )
426426 }
427427 if h , ok := tpl [1 ].(string ); ! ok || h != "val 10" {
@@ -488,9 +488,8 @@ func TestClient(t *testing.T) {
488488 if len (resp .Data ) < 1 {
489489 t .Errorf ("Response.Data is empty after Eval" )
490490 }
491- val := resp .Data [0 ].(int64 )
491+ val := resp .Data [0 ].(uint64 )
492492 if val != 11 {
493493 t .Errorf ("5 + 6 == 11, but got %v" , val )
494494 }
495-
496495}
0 commit comments