Skip to content

Commit f2a0912

Browse files
authored
Merge branch 'master' into lc/yarn-docs
2 parents b6cea33 + 182e6cb commit f2a0912

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

.github/workflows/ci-nix.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,8 @@ jobs:
4747
- name: ❓ Test
4848
if: ${{ matrix.package != 'hydra-tui' }}
4949
run: |
50-
if [[ "${{secrets.blockfrost_token}}" != '' ]]; then
51-
echo "${{secrets.blockfrost_token}}" > blockfrost-project.txt
52-
cd ${{ matrix.package }}
53-
nix build .#${{ matrix.package }}-tests
54-
nix develop .#${{ matrix.package }}-tests --command tests
55-
else
56-
echo "::warning file=blockfrost-project.txt,title=BLOCKFROST::Missing blockfrost project file."
57-
fi
50+
cd ${{ matrix.package }} # To ensure the `./golden` files are available.
51+
nix develop .#${{ matrix.package }}-tests --command tests
5852
5953
# This one is special, as it requires a tty.
6054
- name: ❓ Test (TUI)
@@ -67,7 +61,6 @@ jobs:
6761
TERM: "xterm"
6862
run: |
6963
cd ${{ matrix.package }}
70-
nix build .#${{ matrix.package }}-tests
7164
nix develop .#${{ matrix.package }}-tests --command tests
7265
7366
# NOTE: This depends on the path used in hydra-cluster e2e tests

.github/workflows/nightly-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: ❓ E2E Blockfrost Test
3838
run: |
3939
if [[ "${{secrets.blockfrost_token}}" != '' ]]; then
40-
echo "${{secrets.blockfrost_token}}" > blockfrost-project.txt
4140
cd ${{ matrix.package }}
41+
echo "${{secrets.blockfrost_token}}" > blockfrost-project.txt
4242
nix develop .#${{ matrix.package }}-tests --command tests -m "End-to-end on Cardano devnet"
4343
else
4444
echo "::warning file=blockfrost-project.txt,title=BLOCKFROST::Missing blockfrost project file."

hydra-cluster/src/Hydra/Cluster/Scenarios.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,12 +1683,10 @@ canDecommit tracer workDir backend hydraScriptsTxId =
16831683
expectFailureOnUnsignedDecommitTx :: HydraClient -> HeadId -> Tx -> IO ()
16841684
expectFailureOnUnsignedDecommitTx n headId decommitTx = do
16851685
let unsignedDecommitTx = makeSignedTransaction [] $ getTxBody decommitTx
1686-
join . generate $
1687-
elements
1688-
[ send n $ input "Decommit" ["decommitTx" .= unsignedDecommitTx]
1689-
, postDecommit n unsignedDecommitTx
1690-
]
1691-
1686+
-- Note: Just send to websocket, as that's how the following code checks
1687+
-- that it failed. We could do the same for the HTTP endpoint, but doesn't
1688+
-- quite seem worth the effort.
1689+
send n $ input "Decommit" ["decommitTx" .= unsignedDecommitTx]
16921690
validationError <- waitMatch 10 n $ \v -> do
16931691
guard $ v ^? key "headId" == Just (toJSON headId)
16941692
guard $ v ^? key "tag" == Just (Aeson.String "DecommitInvalid")

0 commit comments

Comments
 (0)