Skip to content

Commit

Permalink
Merge pull request #144 from cowlicks/fix-tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
ttiurani authored Oct 24, 2024
2 parents 4f2f5fe + 60015d7 commit 7f70249
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
components: rustfmt
- name: Run tests
run: |
cargo check --no-default-features --features tokio
cargo check --no-default-features --features tokio,sparse
cargo check --no-default-features --features tokio,sparse,cache
cargo check --no-default-features --features async-std
cargo check --no-default-features --features async-std,sparse
cargo check --no-default-features --features async-std,sparse,cache
cargo check --all-targets --no-default-features --features tokio
cargo check --all-targets --no-default-features --features tokio,sparse
cargo check --all-targets --no-default-features --features tokio,sparse,cache
cargo check --all-targets --no-default-features --features async-std
cargo check --all-targets --no-default-features --features async-std,sparse
cargo check --all-targets --no-default-features --features async-std,sparse,cache
cargo test --no-default-features --features js_interop_tests,tokio
cargo test --no-default-features --features js_interop_tests,tokio,sparse
cargo test --no-default-features --features js_interop_tests,tokio,sparse,cache
Expand All @@ -57,12 +57,12 @@ jobs:
components: rustfmt
- name: Run tests
run: |
cargo check --no-default-features --features tokio
cargo check --no-default-features --features tokio,sparse
cargo check --no-default-features --features tokio,sparse,cache
cargo check --no-default-features --features async-std
cargo check --no-default-features --features async-std,sparse
cargo check --no-default-features --features async-std,sparse,cache
cargo check --all-targets --no-default-features --features tokio
cargo check --all-targets --no-default-features --features tokio,sparse
cargo check --all-targets --no-default-features --features tokio,sparse,cache
cargo check --all-targets --no-default-features --features async-std
cargo check --all-targets --no-default-features --features async-std,sparse
cargo check --all-targets --no-default-features --features async-std,sparse,cache
cargo test --no-default-features --features tokio
cargo test --no-default-features --features tokio,sparse
cargo test --no-default-features --features tokio,sparse,cache
Expand All @@ -82,12 +82,12 @@ jobs:
components: rustfmt
- name: Run tests
run: |
cargo check --no-default-features --features tokio
cargo check --no-default-features --features tokio,sparse
cargo check --no-default-features --features tokio,sparse,cache
cargo check --no-default-features --features async-std
cargo check --no-default-features --features async-std,sparse
cargo check --no-default-features --features async-std,sparse,cache
cargo check --all-targets --no-default-features --features tokio
cargo check --all-targets --no-default-features --features tokio,sparse
cargo check --all-targets --no-default-features --features tokio,sparse,cache
cargo check --all-targets --no-default-features --features async-std
cargo check --all-targets --no-default-features --features async-std,sparse
cargo check --all-targets --no-default-features --features async-std,sparse,cache
cargo test --no-default-features --features js_interop_tests,tokio
cargo test --no-default-features --features js_interop_tests,tokio,sparse
cargo test --no-default-features --features js_interop_tests,tokio,sparse,cache
Expand Down
4 changes: 2 additions & 2 deletions benches/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async fn create_hypercore(page_size: usize) -> Result<Hypercore, HypercoreError>
let storage = Storage::open(
|_| {
Box::pin(async move {
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits>)
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits + Send>)
})
},
false,
Expand All @@ -44,7 +44,7 @@ async fn create_hypercore(page_size: usize) -> Result<Hypercore, HypercoreError>
let storage = Storage::open(
|_| {
Box::pin(async move {
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits>)
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits + Send>)
})
},
false,
Expand Down
2 changes: 1 addition & 1 deletion tests/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"step": "node interop.js"
},
"dependencies": {
"hypercore": "^10"
"hypercore": "10.31.12"
}
}

0 comments on commit 7f70249

Please sign in to comment.