Skip to content

Commit

Permalink
tests : vegeta
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Aug 12, 2023
1 parent ed422df commit 1d2ef10
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion vegeta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,20 @@ package bluma
import "testing"

func TestAttack(t *testing.T) {

t.Run("Attack", func(t *testing.T) {
atk := Attacker{
path: Path{
path: "http://localhost:8080/health",
method: []Method{
{
method: "GET",
},
},
},
methodIndex: 0,
frequency: 10,
duration: 1,
}
atk.Attack()
})
}

0 comments on commit 1d2ef10

Please sign in to comment.