Skip to content

Commit

Permalink
fix: sleep to protect against multiple reruns
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-dk committed Nov 5, 2024
1 parent 372c12b commit 1a167b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testgen/ui/views/connections/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# type: ignore
import time
import typing

import streamlit as st
Expand Down Expand Up @@ -114,6 +115,7 @@ def form_key(self):
return f"connection_form:{self.connection_id or 'new'}"

def render_input_ui(self, container: DeltaGenerator, data: dict) -> "BaseConnectionForm":
time.sleep(0.1)
main_fields_container, optional_fields_container = container.columns([0.7, 0.3])

if self.get_field_value("connect_by_url", latest=True):
Expand Down Expand Up @@ -154,6 +156,8 @@ def render_input_ui(self, container: DeltaGenerator, data: dict) -> "BaseConnect
self.render_field("url_prefix", container=url_override_left_column)
self.render_field("url", container=url_override_right_column)

time.sleep(0.1)

return self

def render_extra(
Expand Down

0 comments on commit 1a167b8

Please sign in to comment.