@@ -278,7 +278,7 @@ func TestClient(t *testing.T) {
278
278
if len (tpl ) != 3 {
279
279
t .Errorf ("Unexpected body of Insert (tuple len)" )
280
280
}
281
- if id , ok := tpl [0 ].(int64 ); ! ok || id != 1 {
281
+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 1 {
282
282
t .Errorf ("Unexpected body of Insert (0)" )
283
283
}
284
284
if h , ok := tpl [1 ].(string ); ! ok || h != "hello" {
@@ -310,7 +310,7 @@ func TestClient(t *testing.T) {
310
310
if len (tpl ) != 3 {
311
311
t .Errorf ("Unexpected body of Delete (tuple len)" )
312
312
}
313
- if id , ok := tpl [0 ].(int64 ); ! ok || id != 1 {
313
+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 1 {
314
314
t .Errorf ("Unexpected body of Delete (0)" )
315
315
}
316
316
if h , ok := tpl [1 ].(string ); ! ok || h != "hello" {
@@ -352,7 +352,7 @@ func TestClient(t *testing.T) {
352
352
if len (tpl ) != 3 {
353
353
t .Errorf ("Unexpected body of Replace (tuple len)" )
354
354
}
355
- if id , ok := tpl [0 ].(int64 ); ! ok || id != 2 {
355
+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 2 {
356
356
t .Errorf ("Unexpected body of Replace (0)" )
357
357
}
358
358
if h , ok := tpl [1 ].(string ); ! ok || h != "hi" {
@@ -377,7 +377,7 @@ func TestClient(t *testing.T) {
377
377
if len (tpl ) != 2 {
378
378
t .Errorf ("Unexpected body of Update (tuple len)" )
379
379
}
380
- if id , ok := tpl [0 ].(int64 ); ! ok || id != 2 {
380
+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 2 {
381
381
t .Errorf ("Unexpected body of Update (0)" )
382
382
}
383
383
if h , ok := tpl [1 ].(string ); ! ok || h != "bye" {
@@ -421,7 +421,7 @@ func TestClient(t *testing.T) {
421
421
if tpl , ok := resp .Data [0 ].([]interface {}); ! ok {
422
422
t .Errorf ("Unexpected body of Select" )
423
423
} else {
424
- if id , ok := tpl [0 ].(int64 ); ! ok || id != 10 {
424
+ if id , ok := tpl [0 ].(uint64 ); ! ok || id != 10 {
425
425
t .Errorf ("Unexpected body of Select (0)" )
426
426
}
427
427
if h , ok := tpl [1 ].(string ); ! ok || h != "val 10" {
@@ -488,9 +488,8 @@ func TestClient(t *testing.T) {
488
488
if len (resp .Data ) < 1 {
489
489
t .Errorf ("Response.Data is empty after Eval" )
490
490
}
491
- val := resp .Data [0 ].(int64 )
491
+ val := resp .Data [0 ].(uint64 )
492
492
if val != 11 {
493
493
t .Errorf ("5 + 6 == 11, but got %v" , val )
494
494
}
495
-
496
495
}
0 commit comments