From 8eb41de143fd22b2a604ba364e5a2f26398c2e1b Mon Sep 17 00:00:00 2001 From: smoking Date: Wed, 14 Aug 2024 22:08:31 +0300 Subject: [PATCH] update monkey module path --- blocker_test.go | 2 +- go.mod | 8 ++++++++ go.sum | 4 ++++ rate_limit_test.go | 2 +- spammer_test.go | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/blocker_test.go b/blocker_test.go index 805efd6..5372809 100644 --- a/blocker_test.go +++ b/blocker_test.go @@ -5,7 +5,7 @@ import ( "time" "aahframework.org/test.v0/assert" - "github.com/bouk/monkey" + "bou.ke/monkey" ) func Test_it_block_as_expected(t *testing.T) { diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..074c8d4 --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module ratelimit + +go 1.22 + +require ( + aahframework.org/test.v0 v0.0.0-20170303192812-d14ae1dc852d + bou.ke/monkey v1.0.2 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..d96c9e7 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +aahframework.org/test.v0 v0.0.0-20170303192812-d14ae1dc852d h1:xrk269ZdyicxrmDDwLkjpWxzBeApYPKmGlAXtXylB0k= +aahframework.org/test.v0 v0.0.0-20170303192812-d14ae1dc852d/go.mod h1:Dc0WOMD7SnuzGgAI29bLYayM5XoDr+Iha/jfObqPwhA= +bou.ke/monkey v1.0.2 h1:kWcnsrCNUatbxncxR/ThdYqbytgOIArtYWqcQLQzKLI= +bou.ke/monkey v1.0.2/go.mod h1:OqickVX3tNx6t33n1xvtTtu85YN5s6cKwVug+oHMaIA= diff --git a/rate_limit_test.go b/rate_limit_test.go index 871930d..dae5228 100644 --- a/rate_limit_test.go +++ b/rate_limit_test.go @@ -6,7 +6,7 @@ import ( "time" "aahframework.org/test.v0/assert" - "github.com/bouk/monkey" + "bou.ke/monkey" ) func Test_IT_PANIC_WHEN_INVALID_NEW_RATE_PATTERN(t *testing.T) { diff --git a/spammer_test.go b/spammer_test.go index 7fd4b74..662c5ca 100644 --- a/spammer_test.go +++ b/spammer_test.go @@ -5,7 +5,7 @@ import ( "time" "aahframework.org/test.v0/assert" - "github.com/bouk/monkey" + "bou.ke/monkey" ) func Test_it_count_spam_as_expected(t *testing.T) {