redis_test 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_test/version.rb +1 -1
- data/lib/redis_test.rb +4 -2
- data/spec/redis_test_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 841053341b54ef4b39e1c083e84c381dd611c7f0
|
4
|
+
data.tar.gz: a4318f475dff064bcd25367b245a76c0ed46fcb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b54682423119694e914a9657f1aea21d7a06dbb7579bed76b901f0897d986667c72ea64a8fe6a1c194e8f42b3861cd721e71ff52fc81d6e55a0a699d5270bcf
|
7
|
+
data.tar.gz: 78967833b090a5f9de1daba744acb1f591d5fa0cb1bc2d4f1fe795046c3b1a99be6a4298c98aac0be82ad1cff3be3356d29cd74f0dfe705f7b4b00fd58794cb9
|
data/lib/redis_test/version.rb
CHANGED
data/lib/redis_test.rb
CHANGED
@@ -45,7 +45,6 @@ module RedisTest
|
|
45
45
|
FileUtils.mkdir_p logs_path
|
46
46
|
|
47
47
|
redis_options = {
|
48
|
-
"daemonize" => 'yes',
|
49
48
|
"pidfile" => pidfile,
|
50
49
|
"port" => port,
|
51
50
|
"timeout" => 300,
|
@@ -62,7 +61,10 @@ module RedisTest
|
|
62
61
|
end
|
63
62
|
|
64
63
|
redis_options_str = redis_options.map { |k, v| "#{k} #{v}" }.join('\n')
|
65
|
-
|
64
|
+
|
65
|
+
fork do
|
66
|
+
system "echo '#{redis_options_str}' | redis-server -"
|
67
|
+
end
|
66
68
|
|
67
69
|
wait_time_remaining = 5
|
68
70
|
begin
|
data/spec/redis_test_spec.rb
CHANGED