Skip to content

Commit

Permalink
Fix tests (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Oct 10, 2024
1 parent 09a63ab commit e8aba25
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 54 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/full-help-docs.yml

This file was deleted.

11 changes: 10 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

complete:
if: always()
needs: [fmt, build-and-test, publish-dry-run]
needs: [fmt, check-generated-full-help-docs, build-and-test, publish-dry-run]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
Expand All @@ -38,6 +38,15 @@ jobs:
- name: Check no diffs exist
run: git add -N . && git diff HEAD --exit-code

check-generated-full-help-docs:
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v4
- uses: stellar/actions/rust-cache@main
- run: rustup update
- run: make generate-full-help-doc
- run: git add -N . && git diff HEAD --exit-code

build-and-test:
strategy:
fail-fast: false
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mod test {
#[test]
fn test_hello() {
let env = Env::default();
let contract_id = env.register(Contract, ());
let contract_id = env.register_contract(None, Contract);
let client = ContractClient::new(&env, &contract_id);
let world = symbol_short!("world");
let res = client.hello(&world);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { version = "=21.7.2" }
soroban-token-sdk = { workspace = true }
soroban-token-sdk = { version = "=21.7.2" }

[dev-dependencies]
soroban-sdk = { version = "=21.7.2", features = ["testutils"] }
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use soroban_cli::{
tx::{builder, ONE_XLM},
utils::contract_id_hash_from_asset,
xdr::{self, ReadXdr, SequenceNumber},
};
use soroban_sdk::xdr::{self, ReadXdr, SequenceNumber};
use soroban_test::{AssertExt, TestEnv};

use crate::integration::{
Expand Down

0 comments on commit e8aba25

Please sign in to comment.