Panic if resulting row is not what is expected
This commit is contained in:
parent
9be127ae40
commit
a16d6cf75c
|
@ -200,6 +200,10 @@ func (s *testSuite) expectValue(t *testing.T, tbl *table, exp interface{}) {
|
||||||
}
|
}
|
||||||
if evt.Table != nil && evt.Table.TableName == tbl.name {
|
if evt.Table != nil && evt.Table.TableName == tbl.name {
|
||||||
// pretty.Println(evt)
|
// pretty.Println(evt)
|
||||||
|
if len(evt.Rows.Rows) != 1 && len(evt.Rows.Rows[0]) != 1 {
|
||||||
|
panic("Expected one row with one value")
|
||||||
|
}
|
||||||
|
|
||||||
out <- evt.Rows.Rows[0][0]
|
out <- evt.Rows.Rows[0][0]
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue