Skip to content

Commit 3d7b3c9

Browse files
author
Jan Koprowski
committed
Execute start() after setting strategy.
1 parent 43ca414 commit 3d7b3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/sftp/testcontainers/sftp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ def _configure(self) -> None:
265265
self.with_exposed_ports(self.port)
266266

267267
def start(self) -> Self:
268-
super().start()
269268
strategy = LogMessageWaitStrategy(f".*Server listening on 0.0.0.0 port {self.port}.*")
270269
self.waiting_for(strategy)
270+
super().start()
271271
return self
272272

273273
def get_exposed_sftp_port(self) -> int:

0 commit comments

Comments
 (0)