test: fixes failing test in go1.10

This commit is contained in:
bergquist 2018-01-30 16:00:16 +01:00 committed by Torkel Ödegaard
parent 40832e6d71
commit 8fed56e334

View File

@ -75,7 +75,7 @@ func TestMappingRowValue(t *testing.T) {
boolRowValue, _ := dpw.mapRowValue(&datasource.RowValue{Kind: datasource.RowValue_TYPE_BOOL, BoolValue: true}) boolRowValue, _ := dpw.mapRowValue(&datasource.RowValue{Kind: datasource.RowValue_TYPE_BOOL, BoolValue: true})
haveBool, ok := boolRowValue.(bool) haveBool, ok := boolRowValue.(bool)
if !ok || haveBool != true { if !ok || haveBool != true {
t.Fatalf("Expected true, was %s", haveBool) t.Fatalf("Expected true, was %v", haveBool)
} }
intRowValue, _ := dpw.mapRowValue(&datasource.RowValue{Kind: datasource.RowValue_TYPE_INT64, Int64Value: 42}) intRowValue, _ := dpw.mapRowValue(&datasource.RowValue{Kind: datasource.RowValue_TYPE_INT64, Int64Value: 42})