Skip to content

Commit f324b08

Browse files
author
Grigory Smolkin
committed
tests: more fixes for "cfs_backup" module
1 parent 71661ab commit f324b08

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/cfs_backup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def test_fullbackup_empty_tablespace_page_after_create_table_stream(self):
482482
)
483483

484484
# --- Section: Incremental from fill tablespace --- #
485-
@unittest.expectedFailure
485+
# @unittest.expectedFailure
486486
# @unittest.skip("skip")
487487
@unittest.skipUnless(ProbackupTest.enterprise, 'skip')
488488
def test_fullbackup_after_create_table_ptrack_after_create_table(self):
@@ -546,7 +546,7 @@ def test_fullbackup_after_create_table_ptrack_after_create_table(self):
546546
)
547547
)
548548

549-
@unittest.expectedFailure
549+
# @unittest.expectedFailure
550550
# @unittest.skip("skip")
551551
@unittest.skipUnless(ProbackupTest.enterprise, 'skip')
552552
def test_fullbackup_after_create_table_ptrack_after_create_table_stream(self):
@@ -612,7 +612,7 @@ def test_fullbackup_after_create_table_ptrack_after_create_table_stream(self):
612612
)
613613
)
614614

615-
@unittest.expectedFailure
615+
# @unittest.expectedFailure
616616
# @unittest.skip("skip")
617617
@unittest.skipUnless(ProbackupTest.enterprise, 'skip')
618618
def test_fullbackup_after_create_table_page_after_create_table(self):
@@ -917,7 +917,7 @@ def test_multiple_segments_in_multiple_tablespaces(self):
917917
self.node.safe_psql("postgres", "SELECT * FROM t_heap_2"),
918918
'Lost data after restore')
919919

920-
@unittest.expectedFailure
920+
# @unittest.expectedFailure
921921
# @unittest.skip("skip")
922922
@unittest.skipUnless(ProbackupTest.enterprise, 'skip')
923923
def test_fullbackup_after_create_table_page_after_create_table_stream(self):

tests/helpers/cfs_helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,6 @@ def corrupt_file(filename):
8888

8989
def random_string(n):
9090
a = string.ascii_letters + string.digits
91-
return ''.join([random.choice(a) for i in range(int(n)+1)])
91+
random_str = ''.join([random.choice(a) for i in range(int(n)+1)])
92+
return str.encode(random_str)
93+
# return ''.join([random.choice(a) for i in range(int(n)+1)])

0 commit comments

Comments
 (0)