Files
gocryptotrader/exchanges/gateio/ratelimiter_test.go
Ryan O'Hara-Reid 068a4535ed gateio: update rate limit definitions (#1733)
* gateio: update rate limit definitions (cherry-pick)

* Add test and missing

* Shared REST rate limit definitions with Websocket service, set lookup item to nil for systems that do not require rate limiting; add glorious nit

* gateio: fix race

---------

Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
2024-12-12 15:08:24 +11:00

17 lines
290 B
Go

package gateio
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRateLimits(t *testing.T) {
for epl := range optionsTradingHistoryEPL {
if epl == 0 {
continue
}
assert.NotEmptyf(t, packageRateLimits[epl], "Empty rate limit not found for const %v", epl)
}
}