D-Bus testing: fix testSyncFailure2

With the [INFO] line always coming first, the check for which error
came first broke.
This commit is contained in:
Patrick Ohly 2013-07-17 23:57:16 -07:00
parent b7fa64f15c
commit 932e3ee80b
1 changed files with 2 additions and 1 deletions

View File

@ -7939,7 +7939,8 @@ END:VCARD
# 2. loss of D-Bus connection is noticed first.
# Also, the "connection is closed" error only
# occurs occasionally.
if out.startswith('[ERROR] child process quit because of signal 9'):
if out.startswith('''[INFO @client] target side of local sync ready
[ERROR] child process quit because of signal 9'''):
out = out.replace('''[ERROR] sending message to child failed: The connection is closed
''', '')
self.assertEqualDiff(out, '''[INFO @client] target side of local sync ready