mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-22 13:42:33 +01:00
fix weird /dev/random behavior
This commit is contained in:
parent
9753a3cd9f
commit
224e98d9cf
2 changed files with 20 additions and 20 deletions
|
@ -27,7 +27,7 @@ build:
|
||||||
- export REDIS_URI=$REDIS_URI_CI
|
- export REDIS_URI=$REDIS_URI_CI
|
||||||
script:
|
script:
|
||||||
- bundle exec rake db:create && bundle exec rake db:schema:load && bundle exec rake db:migrate
|
- 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
|
- echo $DOCKERHUB_PW | docker login -u $DOCKERHUB_USER --password-stdin
|
||||||
- docker pull blockstream/satellite-api:latest
|
- docker pull blockstream/satellite-api:latest
|
||||||
- docker pull blockstream/satellite-api-sse:latest
|
- docker pull blockstream/satellite-api-sse:latest
|
||||||
|
|
|
@ -10,7 +10,7 @@ TEST_FILE = "test.random"
|
||||||
TINY_TEST_FILE = "zero_length_test_file.txt"
|
TINY_TEST_FILE = "zero_length_test_file.txt"
|
||||||
|
|
||||||
unless File.exists?(TEST_FILE) and File.exists?(TINY_TEST_FILE)
|
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}`
|
`touch #{TINY_TEST_FILE}`
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue