Skip to content

Commit

Permalink
Fix static file generation + test
Browse files Browse the repository at this point in the history
  • Loading branch information
voidcontext committed Mar 12, 2020
1 parent 7502628 commit c221f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/static-files/pre_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

dd if=/dev/random of=$DIR/100MB.bin bs=1024 count=1024
dd if=/dev/random of=$DIR/100MB.bin bs=1024 count=102400
shasum $DIR/100MB.bin | awk '{print $1}' > $DIR/100MB.bin.shasum
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class DownloaderSpec extends AnyFlatSpec with Matchers {
} yield content
}).unsafeRunSync()

downloadedBytes.length should be(1024 * 1024)
downloadedBytes.length should be(1024 * 1024 * 100)
val expectedShaSum = Source.fromFile("docker/static-files/100MB.bin.shasum").mkString.trim()

val shaSum = MessageDigest.getInstance("SHA-1")
Expand Down

0 comments on commit c221f79

Please sign in to comment.