Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ETCM-395] faucet unit tests #816

Merged
merged 6 commits into from
Nov 27, 2020
Merged

[ETCM-395] faucet unit tests #816

merged 6 commits into from
Nov 27, 2020

Conversation

biandratti
Copy link
Contributor

Description

Add unit test in class FaucetRpcService.
Fix case when we don't have available the faucetHandler (in the actor system)

Proposed Solution

When we don't have the faucetHandler available, we receive an InternalError.

Copy link
Contributor

@lemastero lemastero left a comment

Choose a reason for hiding this comment

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

LGTM 👍

shutdownTimeout = 15.seconds
)

val fHandler = TestProbe()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
val fHandler = TestProbe()
val faucetHandler = TestProbe()

}
}

it should "answer timeout when tried to get status but the Faucet Handler is disable" in new TestSetup {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it should "answer timeout when tried to get status but the Faucet Handler is disable" in new TestSetup {
it should "answer internal error when tried to get status but the Faucet Handler is disable" in new TestSetup {

}
}

it should "answer timeout when tried to send funds but the Faucet Handler is disable" in new TestSetup {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it should "answer timeout when tried to send funds but the Faucet Handler is disable" in new TestSetup {
it should "answer internal error when tried to send funds but the Faucet Handler is disable" in new TestSetup {

@biandratti biandratti merged commit a8d5b00 into develop Nov 27, 2020
@biandratti biandratti deleted the ETCM-395-faucet-test branch November 27, 2020 19:44
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.

3 participants