1
0
Fork 0

Panic if resulting row is not what is expected

This commit is contained in:
Gregory Eremin 2018-11-09 00:58:38 +01:00
parent 9be127ae40
commit a16d6cf75c
1 changed files with 4 additions and 0 deletions

View File

@ -200,6 +200,10 @@ func (s *testSuite) expectValue(t *testing.T, tbl *table, exp interface{}) {
}
if evt.Table != nil && evt.Table.TableName == tbl.name {
// 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]
return
}