Skip to content

Add test for offchain-worker#139

Open
naijauser wants to merge 18 commits into
paritytech:mainfrom
naijauser:10-add-offchain-worker-test
Open

Add test for offchain-worker#139
naijauser wants to merge 18 commits into
paritytech:mainfrom
naijauser:10-add-offchain-worker-test

Conversation

@naijauser

Copy link
Copy Markdown

Closes #10

@rockbmb rockbmb added enhancement New feature or request rust Pull requests that update rust code labels May 14, 2026
@rockbmb rockbmb added this to the Introductory work milestone May 14, 2026
@rockbmb rockbmb self-requested a review June 1, 2026 23:38

@rockbmb rockbmb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naijauser can I ask you to squash these commits to clean up history? 18 for a relatively small PR is ⬆️😱

use substrate_cli_test_utils as common;
use tokio::process::Command;

#[tokio::test]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is actually doing two separate things:

  1. testing the successful execution case
  2. testing the negative one as well

Now, I get that this is done to avoid having to spin up a process twice for what is essentially the same test (good decision); there's just a bit of clarity missing.

Could you write a top-level comment on the test like I asked you to do in PET? As usual, future selves will appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests for on-runtime-upgrade and offchain-worker

2 participants