Skip to content

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.

4 participants