Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
test: add unit test case for supernode_value.go
Browse files Browse the repository at this point in the history
Signed-off-by: Guangwen Feng <[email protected]>
  • Loading branch information
Guangwen Feng committed May 30, 2020
1 parent e8a6514 commit f2dce8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dfget/config/supernode_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ type SupernodeValueSuite struct {
suite.Suite
}

func (suit *SupernodeValueSuite) TestGetDefaultSupernodesValue() {
var expectedNodes = []*NodeWeight{{"127.0.0.1:8002", 1}}
suit.Equal(expectedNodes, GetDefaultSupernodesValue())
}

func (suit *SupernodeValueSuite) TestHandleNodes() {
var cases = []struct {
nodeWithWeightList []string
Expand Down

0 comments on commit f2dce8f

Please sign in to comment.