Skip to content

Commit 2821621

Browse files
committed
Fix last two unit tests
1 parent 0cfa7de commit 2821621

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

tests/searchcommands/recordings/scpv2/Splunk-6.3/countmatches.output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
chunked 1.0,19,0
2-
{"type":"stateful"}
1+
chunked 1.0,20,0
2+
{"type":"streaming"}
33
chunked 1.0,17,49651
44
{"finished":true}_serial,__mv__serial,_time,__mv__time,text,__mv_text,word_count,__mv_word_count
55
0,,1380899494,,excellent review my friend loved it yours always guppyman @GGreeny62... http://t.co/fcvq7NDHxl,,14,

tests/searchcommands/recordings/scpv2/Splunk-6.3/sum.map.output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
chunked 1.0,19,0
2-
{"type":"stateful"}
1+
chunked 1.0,20,0
2+
{"type":"streaming"}
33
chunked 1.0,17,34
44
{"finished":true}total,__mv_total
55
2147943.07811,

tests/searchcommands/test_configuration_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def generate(self):
7777

7878
self.assertEqual(
7979
[(name, value) for name, value in command.configuration.iteritems()],
80-
[('generating', True), ('type', 'stateful')])
80+
[('generating', True), ('type', 'streaming')])
8181

8282
self.assertIs(command.configuration.distributed, False)
8383
self.assertIs(command.configuration.generating, True)

tests/searchcommands/test_searchcommands_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ def assertInfoEqual(self, output, expected):
265265

266266
def _compare_chunks(self, expected, output, time_sensitive=True):
267267

268+
expected = expected.strip()
269+
output = output.strip()
270+
268271
if time_sensitive:
269272
self.assertEqual(len(expected), len(output))
270273
compare_csv_files = self._compare_csv_files_time_sensitive
@@ -363,7 +366,6 @@ def _load_chunks(self, ifile):
363366
while True:
364367

365368
line = ifile.readline()
366-
line = line.strip()
367369

368370
if len(line) == 0:
369371
break

0 commit comments

Comments
 (0)