mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
* 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>
17 lines
290 B
Go
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)
|
|
}
|
|
}
|