Skip to content

Commit

Permalink
add test helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Nov 17, 2021
1 parent 4116386 commit 391ccbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ install:
test_produce_local: install
logstream -url=redis://localhost:6379/0/abcd run echo hey

test_produce_large: install
logstream -url=redis://localhost:6379/0/abcd run test_helpers/large_echo.sh

test_consume_local: install
logstream -url=redis://localhost:6379/0/abcd follow
7 changes: 7 additions & 0 deletions test_helpers/large_echo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
for i in {1..50000}
do
echo "Welcome - this is a long long line with a long sentence in it."
done

echo "blah" 1>&2

0 comments on commit 391ccbb

Please sign in to comment.