diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-01-30 15:53:51 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-01-30 15:53:54 -0500 |
commit | f0295becbf3ef1fb78095306408789253fe0c114 (patch) | |
tree | 0f9b7c53fb059f58dcb6d42a9f7e8eb01b55ed1a | |
parent | 9cb2309050880c2887b4b5f7a7231e4fc6dc3f47 (diff) | |
parent | aac6bce11219574e097a51da867e736c3d6ad96e (diff) |
Merge #12302: test: Make ua_comment test pass on 0.16.0
aac6bce112 test: Make ua_comment test pass on 0.16.0 (Wladimir J. van der Laan)
Pull request description:
The specific length of the uacomment is one shorter on `0.16.0` than on `0.15.99` causing the (stupid) test to fail.
This change makes `assert_start_raises_init_error` optionally take a regexp, so that the error message can be checked without being specific about the reported length.
Tree-SHA512: 1c5e9f1d0b36f004f8113c7e211e8281194ce8057869ac3702172d8b021df3c3aa3b8f79b9434678ed0fb7146f848802410647d434fc884aa200b6a5e26afe8b
-rwxr-xr-x | test/functional/feature_uacomment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/feature_uacomment.py b/test/functional/feature_uacomment.py index 0b2c64ab69..bc3791508a 100755 --- a/test/functional/feature_uacomment.py +++ b/test/functional/feature_uacomment.py @@ -23,7 +23,7 @@ class UacommentTest(BitcoinTestFramework): self.log.info("test -uacomment max length") self.stop_node(0) - expected = "Total length of network version string (286) exceeds maximum length (256). Reduce the number or size of uacomments." + expected = "exceeds maximum length (256). Reduce the number or size of uacomments." self.assert_start_raises_init_error(0, ["-uacomment=" + 'a' * 256], expected) self.log.info("test -uacomment unsafe characters") |