Skip to content

Commit

Permalink
fix: improved master code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shoriwe committed May 28, 2023
1 parent 1500aa2 commit 6dd49e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions reverse/master_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ func TestMaster_init(t *testing.T) {
})
}

func TestMaster_Addr(t *testing.T) {
data := network.ListenAny()
defer data.Close()
control := network.ListenAny()
defer control.Close()
m := &Master{
Data: data,
Control: control,
}
assert.NotNil(t, m.Addr())
}
func TestMaster_Accept(t *testing.T) {
t.Run("Succeed", func(tt *testing.T) {
data := network.ListenAny()
Expand Down

0 comments on commit 6dd49e7

Please sign in to comment.