Skip to content

Fixed tests - probably terribly#31

Merged
matburt merged 1 commit intoproject-receptor:masterfrom
psav:fix_tests
Oct 9, 2019
Merged

Fixed tests - probably terribly#31
matburt merged 1 commit intoproject-receptor:masterfrom
psav:fix_tests

Conversation

@psav
Copy link
Copy Markdown
Collaborator

@psav psav commented Sep 27, 2019

This is a starting point to fixing the tests - it was helpful for me to understand a little more about how receptor is working internally, please advise on pieces I should modify.

All 5 tests now pass, but I'm sure there are some items wrong in this PR.

Comment thread test/integration/test_main.py Outdated
peer_config = []
for peer in peers:
peer_config.extend(['--peer', peer])
base_config = ['--node-id', node_name, '--data-dir', '/tmp/receptor', type, '--listen-port', str(unused_tcp_port_factory())]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This bit here implies that /tmp/receptor already exists, either we need to pre-create it or have the test runner create a tmp dir using mkdtemp?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ahh yes - I can fix that if the rest of the implementation seems OK

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yep the rest looks good to me!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Although... no self deprecating comments in commit messages ;)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

awww man!!

@matburt
Copy link
Copy Markdown
Member

matburt commented Oct 9, 2019

I do get some messages indicating we're probably not handling some tasks but I think that's unrelated to this and we'll need to rework some more of our core unit testing to fix them

@matburt matburt merged commit 91de0aa into project-receptor:master Oct 9, 2019
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