Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4369be6

Browse files
committed
Added/Updated tests\functional\replication\test_blob_not_found_in_rw_replica_if_target_row_exists.py: fixed UnboundLocalError that could occur if problem during prepare raised
1 parent2171421 commit4369be6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎tests/functional/replication/test_blob_not_found_in_rw_replica_if_target_row_exists.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def drop_db_objects(act_db_main: Action, act_db_repl: Action, capsys):
372372
deftest_1(act_db_main:Action,act_db_repl:Action,tmp_data:Path,capsys):
373373

374374
out_prep,out_main,out_drop='','',''
375+
blob_inserted_hashes= {act_db_main.db.db_path :'<UNDEFINED>' }
376+
375377
# Obtain full path + filename for DB_MAIN and DB_REPL aliases.
376378
# NOTE: we must NOT use 'a.db.db_path' for ALIASED databases!
377379
# It will return '.' rather than full path+filename.
@@ -427,7 +429,7 @@ def test_1(act_db_main: Action, act_db_repl: Action, tmp_data: Path, capsys):
427429
# Some problem raised with delivering DDL changes to replica
428430
pass
429431
else:
430-
blob_inserted_hashes= {}
432+
#blob_inserted_hashes = {}
431433

432434
# NB: first we put blob into REPLICA database!
433435
##############################################
@@ -474,10 +476,9 @@ def test_1(act_db_main: Action, act_db_repl: Action, tmp_data: Path, capsys):
474476
,crypt_hash(b using sha512) as blob_hash
475477
from test;
476478
"""
477-
478479
isql_expected_out=f"""
479480
REPLICA_MODE READ-WRITE
480-
BLOB_HASH{blob_inserted_hashes[act_db_main.db.db_path ]}
481+
BLOB_HASH{blob_inserted_hashes.get(act_db_main.db.db_path,'<undefined>')}
481482
Records affected: 1
482483
"""
483484

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp