Skip to content

tests: simplify fetch-tests slightly#2101

Merged
mergify[bot] merged 1 commit intonix-community:mainfrom
MattSturgeon:test_linkfarm_cleanup
Aug 28, 2024
Merged

tests: simplify fetch-tests slightly#2101
mergify[bot] merged 1 commit intonix-community:mainfrom
MattSturgeon:test_linkfarm_cleanup

Conversation

@MattSturgeon
Copy link
Copy Markdown
Member

Simplify by reducing the number of transformations done to the test-files' test-case modules attr.

Since pkgs.linkFarm can accept either a list or an attrset, we don't need to transform the attrset into a list.

This has no functional change, and only slightly simplifies some internals. It may end up being redundant if we re-structure the tests again, but I spotted the slight over-complication while working on #2100 so figured I'd make a PR.

@MattSturgeon MattSturgeon requested a review from a team August 28, 2024 01:04
Simplify by reducing the number of transformations done to the
test-files' test-case modules attr.

Since `pkgs.linkFarm` can accept _either_ a list or an attrset, we don't
need to transform the attrset into a list.
@MattSturgeon MattSturgeon force-pushed the test_linkfarm_cleanup branch from 62f330c to 975af6a Compare August 28, 2024 04:45
@MattSturgeon
Copy link
Copy Markdown
Member Author

@Mergifyio queue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 28, 2024

queue

✅ The pull request has been merged automatically

Details

The pull request has been merged automatically at 975af6a

@mergify mergify bot merged commit 975af6a into nix-community:main Aug 28, 2024
@MattSturgeon MattSturgeon deleted the test_linkfarm_cleanup branch August 28, 2024 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants