From 7187ed69c3b185b0f290ad4a41d6f340a5e0cbd3 Mon Sep 17 00:00:00 2001 From: Alain Jobart Date: Tue, 10 Jul 2018 13:11:24 -0700 Subject: [PATCH] Using the configuration error string in this test. So it works with other RPC implementations. Signed-off-by: Alain Jobart alainjobart@google.com Signed-off-by: Alain Jobart --- test/vtgatev3_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/vtgatev3_test.py b/test/vtgatev3_test.py index ec6879a75c4..6c352d1abb8 100755 --- a/test/vtgatev3_test.py +++ b/test/vtgatev3_test.py @@ -25,6 +25,7 @@ import environment import keyspace_util import utils +from protocols_flavor import protocols_flavor from vtdb import dbexceptions from vtdb import vtgate_cursor @@ -669,7 +670,7 @@ def test_user(self): self.fail('Execute went through') except dbexceptions.DatabaseError as e: s = str(e) - self.assertIn('DeadlineExceeded', s) + self.assertIn(protocols_flavor().rpc_timeout_message(), s) # test directive timeout longer than the query time cursor.execute('SELECT /*vt+ QUERY_TIMEOUT_MS=2000 */ SLEEP(1)', {})