fix bandwidth limit journal test (#606)

This commit is contained in:
Michael Quigley 2024-06-07 16:14:47 -04:00
parent 79053e1b28
commit 5e6ec4cde1
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -38,7 +38,6 @@ func TestBandwidthLimitJournal(t *testing.T) {
assert.Equal(t, int64(2048), latestJe.TxBytes)
lc := &LimitClass{
ShareMode: new(sdk.ShareMode),
BackendMode: new(sdk.BackendMode),
PeriodMinutes: 60,
RxBytes: 4096,
@ -46,7 +45,6 @@ func TestBandwidthLimitJournal(t *testing.T) {
TotalBytes: 10240,
LimitAction: LimitLimitAction,
}
*lc.ShareMode = sdk.PrivateShareMode
*lc.BackendMode = sdk.ProxyBackendMode
lcId, err := str.CreateLimitClass(lc, trx)
assert.NoError(t, err)