fix weird /dev/random behavior

This commit is contained in:
nitram 2019-02-28 12:17:59 -08:00
parent 9753a3cd9f
commit 224e98d9cf
No known key found for this signature in database
GPG key ID: 2352C35346C5D534
2 changed files with 20 additions and 20 deletions

View file

@ -27,7 +27,7 @@ build:
- export REDIS_URI=$REDIS_URI_CI
script:
- bundle exec rake db:create && bundle exec rake db:schema:load && bundle exec rake db:migrate
- bundle exec ruby tests/tests.rb || echo "Tests failed.." && exit 1
- bundle exec ruby tests/tests.rb || { echo "Tests failed.."; exit 1; }
- echo $DOCKERHUB_PW | docker login -u $DOCKERHUB_USER --password-stdin
- docker pull blockstream/satellite-api:latest
- docker pull blockstream/satellite-api-sse:latest

View file

@ -10,7 +10,7 @@ TEST_FILE = "test.random"
TINY_TEST_FILE = "zero_length_test_file.txt"
unless File.exists?(TEST_FILE) and File.exists?(TINY_TEST_FILE)
`dd if=/dev/random of=#{TEST_FILE} bs=1k count=#{MAX_MESSAGE_SIZE / KILO_BYTE}`
`dd if=/dev/urandom of=#{TEST_FILE} bs=1k count=#{MAX_MESSAGE_SIZE / KILO_BYTE}`
`touch #{TINY_TEST_FILE}`
end