From 9ec284cc9e5260f49f335fe5f07ae3848fcf1e80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Wed, 29 Apr 2020 16:25:45 +0200
Subject: [PATCH] fix tests so that they won't hang on Travis

---
 tests/test_processes.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_processes.py b/tests/test_processes.py
index 0c9d799f..93c6ca5d 100644
--- a/tests/test_processes.py
+++ b/tests/test_processes.py
@@ -6,10 +6,10 @@ from satella.processes import call_and_return_stdout
 class TestProcesses(unittest.TestCase):
     @unittest.skipIf('win' in sys.platform, 'Running on Windows')
     def test_return_stdout(self):
-        output = call_and_return_stdout('cat /proc/meminfo', shell=True, timeout=3)
-        self.assertIn(b'MemTotal', output)
+        output = call_and_return_stdout('ls /', shell=True, timeout=3)
+        self.assertIn(b'usr', output)
 
     @unittest.skipIf('win' in sys.platform or sys.version_info.minor < 6, 'Running on Windows or Python 3.5')
     def test_return_encoding(self):
-        output = call_and_return_stdout('cat /proc/meminfo', shell=True, encoding='utf8', timeout=3)
-        self.assertIn('MemTotal', output)
+        output = call_and_return_stdout('ls /', shell=True, encoding='utf8', timeout=3)
+        self.assertIn('usr', output)
-- 
GitLab