Skip to content

Commit 9e0f623

Browse files
authored
add search range to make tests more robust (#31)
1 parent 3f57096 commit 9e0f623

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/malformed_data/test_malformed_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_malformed_empty_string(setup, test_input, expected):
5757

5858
# check that events get to splunk
5959
events = check_events_from_splunk(id=u_id,
60-
start_time="-1m@m",
60+
start_time="-15m@m",
6161
url=setup["splunkd_url"],
6262
user=setup["splunk_user"],
6363
password=setup["splunk_password"])

test/partial_log/test_partial_log.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_partial_log(setup, test_input, expected):
5050

5151
# check that events get to splunk
5252
events = check_events_from_splunk(id=u_id,
53-
start_time="-5m@m",
53+
start_time="-15m@m",
5454
url=setup["splunkd_url"],
5555
user=setup["splunk_user"],
5656
password=setup["splunk_password"])
@@ -87,7 +87,7 @@ def test_partial_log_flush_timeout(setup, test_input, expected):
8787

8888
# check that events get to splunk
8989
events = check_events_from_splunk(id=u_id,
90-
start_time="-5m@m",
90+
start_time="-15m@m",
9191
url=setup["splunkd_url"],
9292
user=setup["splunk_user"],
9393
password=setup["splunk_password"])
@@ -122,7 +122,7 @@ def test_partial_log_flush_size_limit(setup):
122122

123123
# check that events get to splunk
124124
events = check_events_from_splunk(id=u_id,
125-
start_time="-5m@m",
125+
start_time="-15m@m",
126126
url=setup["splunkd_url"],
127127
user=setup["splunk_user"],
128128
password=setup["splunk_password"])

0 commit comments

Comments
 (0)