Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 1a674df

Browse files
authored
remove redundant daemon = True reassignment
1 parent eab8ff1 commit 1a674df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

leaderelection/leaderelection_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@ def on_stopped_leading_B():
109109

110110
mock_lock_B.leader_record = mock_lock_A.leader_record
111111

112-
# Enter leader election for A
113112
threading.daemon = True
113+
# Enter leader election for A
114114
threading.Thread(target=leaderelection.LeaderElection(config_A).run()).start()
115115

116116
# Enter leader election for B
117-
threading.daemon = True
118117
threading.Thread(target=leaderelection.LeaderElection(config_B).run()).start()
119118

120119
time.sleep(5)

0 commit comments

Comments
 (0)