Skip to content

Commit

Permalink
chore: compatible unit test running on github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhousanbu committed Mar 3, 2024
1 parent daab35d commit c314d9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpc_server/middlewares/rate_limit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package middlewares

import (
"github.com/stretchr/testify/assert"
"os"
"testing"
"time"
)
Expand All @@ -22,6 +23,10 @@ func TestRateLimitShouldPreventRequestWhenOverDefaultLimit(t *testing.T) {
}

func TestRateLimiterShouldAllowDefaultLimitPerSecond(t *testing.T) {
if os.Getenv("GITHUB_ACTIONS") != "" {
t.Skip()
return
}
mockApiKey := "TestingAipKey"

for x := 1; x <= 2; x++ {
Expand Down

0 comments on commit c314d9b

Please sign in to comment.