mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-27 07:14:48 +00:00
test: Make ua_comment test pass on 0.16.0
The specific length of the uacomment is one shorter on `0.16.0` than on `0.15.99` causing the (stupid) test to fail. Just match the latter part of the message only. Github-Pull: #12302 Rebased-From: aac6bce11219574e097a51da867e736c3d6ad96e Tree-SHA512: 9edecbe2529584d6d01296ec153330bb44add8445fef139d7b7a667b86fef8ee3aafea55d95ac109c9fef079133709f69798477e3eba92744ea2f6c8f5acbb7d
This commit is contained in:
parent
66bc647e8c
commit
6c2788c7c8
@ -23,7 +23,7 @@ class UacommentTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info("test -uacomment max length")
|
self.log.info("test -uacomment max length")
|
||||||
self.stop_node(0)
|
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.assert_start_raises_init_error(0, ["-uacomment=" + 'a' * 256], expected)
|
||||||
|
|
||||||
self.log.info("test -uacomment unsafe characters")
|
self.log.info("test -uacomment unsafe characters")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user