Skip to content

Instantly share code, notes, and snippets.

@jamesmoriarty
Created October 30, 2017 22:59
Show Gist options
  • Save jamesmoriarty/55cd05c6c46c1144b0ed4160291cf0fd to your computer and use it in GitHub Desktop.
Save jamesmoriarty/55cd05c6c46c1144b0ed4160291cf0fd to your computer and use it in GitHub Desktop.
import { exec } from 'child_process';
exec(`{ echo "GET hello"; sleep 0.05; } | telnet 127.0.0.1 6379`, (error, stdout, stderr) => {
// assert
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment