From ac79fd9353a6862a49feadd47f3c2c557c3e148b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Thu, 21 Sep 2023 15:22:18 +0200 Subject: [PATCH] Add time out to TXM process (#1240) --- .github/workflows/build-and-test.yml | 1 + bindings/wasm/README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 5eebb44a00..47e0e622d0 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -17,6 +17,7 @@ on: - '**.toml' - 'bindings/**' - '!bindings/**.md' + - 'bindings/wasm/README.md' # the Readme contain txm tests env: RUST_BACKTRACE: full diff --git a/bindings/wasm/README.md b/bindings/wasm/README.md index 32c0e91d6d..4e821c4ac2 100644 --- a/bindings/wasm/README.md +++ b/bindings/wasm/README.md @@ -56,7 +56,7 @@ Test this example using https://github.com/anko/txm: `txm README.md` Replace imports with local paths for txm: !test program -cat | sed -e "s#require('@iota/identity-wasm/node')#require('./node')#" | node +cat | sed -e "s#require('@iota/identity-wasm/node')#require('./node')#" | timeout 30 node || (echo "Process timed out after 30 seconds" && exit 1) -->