Skip to content

Commit

Permalink
ci: fix tests (#258)
Browse files Browse the repository at this point in the history
* upgrade debs + github action

* test: fix data.data tests

* nix: only pull in holochain binaries

* refactor: remove explicit timeout in tests

* tests: run in parallel

* nix: roll back to v0.2.2

* build: update tryorama

* revert: remove timeouts

* timeout not being effective

* delete stress test file

* tests: run concutrrently again

* de-parallize tests again

* ci: run debug session

* reinstate 500000 ms timeout

* ci: remove tmate session

* just run one test file

* terminal debug one single test

* more logs

* revert to normal tests

* revert log outputs

* ci: remove commented debug term

* test: refactor assert === to equal
  • Loading branch information
jost-s authored Nov 7, 2023
1 parent a2ebc5f commit 610822f
Show file tree
Hide file tree
Showing 19 changed files with 487 additions and 534 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v22
Expand Down
48 changes: 17 additions & 31 deletions flake.lock

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

3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
versions.url = "github:holochain/holochain?dir=versions/0_2";
holonix.url = "github:holochain/holochain";
holonix.inputs.versions.follows = "versions";
holonix.inputs.holochain.url = "github:holochain/holochain/holochain-0.2.2";
};

outputs = inputs@{ holonix, ... }:
Expand All @@ -16,7 +15,7 @@
perSystem = { config, system, pkgs, ... }:
{
devShells.default = pkgs.mkShell {
inputsFrom = [ holonix.devShells.${system}.holonix ];
inputsFrom = [ holonix.devShells.${system}.holochainBinaries ];
packages = with pkgs; [
# add further packages from nixpkgs
nodejs
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"test": "vitest run"
},
"dependencies": {
"@holochain/client": "^0.16.1",
"@holochain/tryorama": "0.15.0",
"@holochain/client": "^0.16.3",
"@holochain/tryorama": "0.15.2",
"@msgpack/msgpack": "^2.8.0",
"typescript": "^4.9.4",
"vitest": "^0.28.5"
Expand Down
6 changes: 3 additions & 3 deletions tests/src/mewsfeed/agent_pins/pinner-to-hashes.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { assert, test } from "vitest";
import { assert, it } from "vitest";

import { runScenario, dhtSync } from "@holochain/tryorama";
import { AgentPubKey, HoloHash, fakeActionHash } from "@holochain/client";
import { dhtSync, runScenario } from "@holochain/tryorama";

test("link a Pinner to a Hash", async () => {
it("link a Pinner to a Hash", async () => {
await runScenario(
async (scenario) => {
// Construct proper paths for your app.
Expand Down
Loading

0 comments on commit 610822f

Please sign in to comment.