From b084baf78cb667ebd245999fe7b565772f9380b8 Mon Sep 17 00:00:00 2001 From: Harlan Wood Date: Sat, 8 Apr 2023 15:51:11 -1000 Subject: [PATCH] Test fixes; run sweettest in CI --- .github/workflows/test.yml | 3 +++ dnas/clutter/coordinator_zomes/mews/tests/mews_tests.rs | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f12f1003..d515505f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,5 +47,8 @@ jobs: - name: Build Happ run: nix develop -c $SHELL -c "npm run build:happ" + - name: Test with sweettest + run: nix develop -c $SHELL -c "npm test:sweet" + - name: Test with tryorama run: nix develop -c $SHELL -c "npm test" diff --git a/dnas/clutter/coordinator_zomes/mews/tests/mews_tests.rs b/dnas/clutter/coordinator_zomes/mews/tests/mews_tests.rs index 0e702d7d..ae3050a0 100644 --- a/dnas/clutter/coordinator_zomes/mews/tests/mews_tests.rs +++ b/dnas/clutter/coordinator_zomes/mews/tests/mews_tests.rs @@ -9,17 +9,17 @@ use holochain::test_utils::consistency_10s; use mews_integrity::*; const DNA_FILEPATH: &str = "../../workdir/clutter.dna"; -const ZOME_NAME: &str = "clutter"; +const ZOME_NAME: &str = "mews"; #[tokio::test(flavor = "multi_thread")] -async fn trustd_feed_is_based_on_follow_topics() { +async fn trusted_feed_is_based_on_follow_topics() { // Use prebuilt DNA file let dna_path = std::env::current_dir().unwrap().join(DNA_FILEPATH); let dna = SweetDnaFile::from_bundle(&dna_path).await.unwrap(); // Set up conductors let mut conductors = SweetConductorBatch::from_config(3, ConductorConfig::default()).await; - let apps = conductors.setup_app("clutter", &[dna]).await.unwrap(); + let apps = conductors.setup_app(ZOME_NAME, &[dna]).await.unwrap(); conductors.exchange_peer_info().await; let ((ann,), (bob,), (cat,)) = apps.into_tuples(); @@ -32,7 +32,7 @@ async fn trustd_feed_is_based_on_follow_topics() { // let bob_conductor = conductors[1].clone(); // let cat_conductor = conductors[2].clone(); - let _entry_hash: EntryHash = conductors[0] + let _: () = conductors[0] .call( &ann_zome, "follow",