Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Have ThreadPantheonNodeRunner support plugin tests. #1477

Merged
merged 1 commit into from
May 21, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented May 21, 2019

PR description

  • Do plugin lifecycle in ThreadPantheonNodeRunner
  • Sniff out rendezvous directory for test during register call, it changes.

Fixed Issue(s)

* Do plugin lifecycle in ThreadPantheonNodeRunner
* Sniff out rendezvous directory for test during register call, it changes.
Copy link
Contributor

@mbaxter mbaxter left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -62,8 +65,7 @@ private void onBlockAnnounce(final String json) {
final int blockCount = blockCounter.incrementAndGet();
LOG.info("I got a new block! (I've seen {}) - {}", blockCount, json);
try {
final File callbackFile =
new File(System.getProperty("pantheon.plugins.dir", "plugins"), "newBlock." + blockCount);
final File callbackFile = new File(callbackDir, "newBlock." + blockCount);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should each plugin get its own directory??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll do that when we add another plugin.

@shemnon shemnon merged commit 69ffdb1 into PegaSysEng:master May 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants