Skip to content

Commit

Permalink
chore: bump blake3.cr (#184)
Browse files Browse the repository at this point in the history
* chore: bump blake3.cr

* fix(spec): bump timeout to n_hashes * 5000

the CI takes longer to calculate all 7 hashes and sometimes reaches the timeout. This commit bumps the time out to 7*5000 ms
  • Loading branch information
GeopJr authored Jan 24, 2024
1 parent 96ed264 commit b4d7ce7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions data/dev.geopjr.Collision.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
{
"type": "archive",
"dest": "crystal/",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.10.1/crystal-1.10.1-1-linux-x86_64.tar.gz",
"sha256": "1742e3755d3653d1ba07c0291f10a517fa392af87130dba4497ed9d82c12348b",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.11.2/crystal-1.11.2-1-linux-x86_64.tar.gz",
"sha256": "732eea9df6458c89157dae945fb0adbee0beb6345ca03bc3ccd299b2bf0879ae",
"only_arches": [
"x86_64"
]
Expand All @@ -101,7 +101,7 @@
{
"type": "git",
"url": "https://github.com/geopjr/blake3.cr.git",
"tag": "v1.2.0",
"tag": "v1.3.0",
"dest": "lib/blake3"
},
{
Expand Down
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.0
shards:
blake3:
git: https://github.com/geopjr/blake3.cr.git
version: 1.2.0
version: 1.3.0

gettext:
git: https://github.com/geopjr/gettext.cr.git
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
version: ~> 1.0.0
blake3:
github: GeopJr/blake3.cr
version: ~> 1.2.0
version: ~> 1.3.0

crystal: 1.9.2

Expand Down
2 changes: 1 addition & 1 deletion spec/hash_generator_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe Collision::Checksum do

safe_stop = Time.utc.to_unix_ms
loop do
break if Collision::CLIPBOARD_HASH.size == hashes.size || Time.utc.to_unix_ms - safe_stop > Collision::CLIPBOARD_HASH.size * 1000
break if Collision::CLIPBOARD_HASH.size == hashes.size || Time.utc.to_unix_ms - safe_stop > Collision::CLIPBOARD_HASH.size * 5000
end

Collision::CLIPBOARD_HASH.each do |k, v|
Expand Down

0 comments on commit b4d7ce7

Please sign in to comment.