Skip to content

Commit f10ae75

Browse files
committed
scenarios: add main() to all files
scenarios will need a callable entrypoint for the pyz archive
1 parent 510329e commit f10ae75

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

resources/scenarios/ln_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,5 @@ def funded_lnnodes():
180180
)
181181

182182

183-
if __name__ == "__main__":
183+
def main():
184184
LNInit().main()

resources/scenarios/miner_std.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ def run_test(self):
6767
sleep(self.options.interval)
6868

6969

70-
if __name__ == "__main__":
70+
def main():
7171
MinerStd().main()

resources/scenarios/reconnaissance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ def run_test(self):
8080
self.log.info(f"Got notfound message from {dstaddr}:{dstport}")
8181

8282

83-
if __name__ == "__main__":
83+
def main():
8484
Reconnaissance().main()

resources/scenarios/signet_miner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,5 +562,5 @@ def get_args(parser):
562562

563563
return args
564564

565-
if __name__ == "__main__":
565+
def main():
566566
SignetMinerScenario().main()

resources/scenarios/tx_flood.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ def run_test(self):
6666
sleep(30)
6767

6868

69-
if __name__ == "__main__":
69+
def main():
7070
TXFlood().main()

0 commit comments

Comments
 (0)