summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-06-06 11:52:00 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 13:24:08 +0000
commitab9a9b5aa7930c16afad93d077603ade79a41e5c (patch)
tree0532163f70581b9119b9f16c20d6ed6745fa4794
parent0b7a9f3e48d1cfcdd16ca01f3b8643a1c1753876 (diff)
downloadbuildstream-jennis/fix_failing_test.tar.gz
tests/sourcecache/push.py: Less strict initialisation checkjennis/fix_failing_test
When we are testing push failures, we are being too strict when we try to verify that the remote has failed to be initialized. The assertion was failing because of slightly different gRPC error messages. Now the assertion is less strict but still appropriate.
-rw-r--r--tests/sourcecache/push.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sourcecache/push.py b/tests/sourcecache/push.py
index abab1616c..065047b1b 100644
--- a/tests/sourcecache/push.py
+++ b/tests/sourcecache/push.py
@@ -179,8 +179,8 @@ def test_push_fail(cli, tmpdir, datafiles):
# build and check that it fails to set up the remote
res = cli.run(project=project_dir, args=['build', 'push.bst'])
res.assert_success()
- assert ("Failed to initialize remote {}: Connect Failed"
- .format(remote)) in res.stderr
+
+ assert "Failed to initialize remote {}".format(remote) in res.stderr
assert "Pushing" not in res.stderr
assert "Pushed" not in res.stderr