From 1d2ef10cb6f113ea64ea221efb575a906f278136 Mon Sep 17 00:00:00 2001 From: seipan Date: Sun, 13 Aug 2023 02:03:35 +0900 Subject: [PATCH] tests : vegeta --- vegeta_test.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/vegeta_test.go b/vegeta_test.go index 24e776b..a9493d3 100644 --- a/vegeta_test.go +++ b/vegeta_test.go @@ -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() + }) }