зеркало из https://github.com/github/vitess-gh.git
Fixing vtclient2 logging in tests.
This commit is contained in:
Родитель
11690e9a67
Коммит
3f3afd5b50
|
@ -175,6 +175,6 @@ func main() {
|
|||
if err := r.Err(); err != nil {
|
||||
log.Fatalf("Error %v\n", err)
|
||||
}
|
||||
log.Infof("Total time:", time.Now().Sub(now), "Row count:", rowIndex)
|
||||
log.Infof("Total time: %v / Row count: %v", time.Now().Sub(now), rowIndex)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -309,7 +309,7 @@ class TestTabletManager(unittest.TestCase):
|
|||
path='test_keyspace/0', verbose=True,
|
||||
user='ala', password=r'ma kota')
|
||||
logging.debug("Got rows: " + err)
|
||||
if 'Row count:' not in err:
|
||||
if 'Row count: 4' not in err:
|
||||
self.fail("query didn't go through: %s, %s" % (err, out))
|
||||
|
||||
tablet_62344.kill_vttablet()
|
||||
|
|
|
@ -423,7 +423,7 @@ def vtclient2(uid, path, query, bindvars=None, user=None, password=None, driver=
|
|||
if driver:
|
||||
cmdline.extend(['-driver', driver])
|
||||
if verbose:
|
||||
cmdline.append('-alsologtostderr')
|
||||
cmdline.extend(['-alsologtostderr', '-verbose'])
|
||||
cmdline.append(query)
|
||||
|
||||
return run(cmdline, raise_on_error=raise_on_error, trap_output=True)
|
||||
|
|
Загрузка…
Ссылка в новой задаче