Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalcaliskan committed Jan 3, 2022
2 parents 05ccae7 + 083bd65 commit 63850fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/raw/raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func StartFlooding(destinationHost string, destinationPort, payloadLength int, f
return err
}

description := fmt.Sprintf("Flood is in progress, target=%s:%d, floodType=%s, payloadLength=%d",
description := fmt.Sprintf("Flood is in progress, target=%s:%d, floodType=%s, payloadLength=%d\n",
destinationHost, destinationPort, floodType, payloadLength)
bar := progressbar.DefaultBytes(-1, description)

Expand Down
3 changes: 1 addition & 2 deletions internal/raw/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import (
"testing"
)

func TestResolveHost(t *testing.T) {
func TestResolveHostSuccess(t *testing.T) {
cases := []struct {
caseName string
host string
}{
{"case1", "example.com"},
{"case2", "93.184.216.34"},
{"case3", "nonexisteddns.com"},
}

for _, tc := range cases {
Expand Down

0 comments on commit 63850fc

Please sign in to comment.