mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 16:54:23 +01:00
fix bandwidth limit journal test (#606)
This commit is contained in:
parent
79053e1b28
commit
5e6ec4cde1
@ -38,7 +38,6 @@ func TestBandwidthLimitJournal(t *testing.T) {
|
|||||||
assert.Equal(t, int64(2048), latestJe.TxBytes)
|
assert.Equal(t, int64(2048), latestJe.TxBytes)
|
||||||
|
|
||||||
lc := &LimitClass{
|
lc := &LimitClass{
|
||||||
ShareMode: new(sdk.ShareMode),
|
|
||||||
BackendMode: new(sdk.BackendMode),
|
BackendMode: new(sdk.BackendMode),
|
||||||
PeriodMinutes: 60,
|
PeriodMinutes: 60,
|
||||||
RxBytes: 4096,
|
RxBytes: 4096,
|
||||||
@ -46,7 +45,6 @@ func TestBandwidthLimitJournal(t *testing.T) {
|
|||||||
TotalBytes: 10240,
|
TotalBytes: 10240,
|
||||||
LimitAction: LimitLimitAction,
|
LimitAction: LimitLimitAction,
|
||||||
}
|
}
|
||||||
*lc.ShareMode = sdk.PrivateShareMode
|
|
||||||
*lc.BackendMode = sdk.ProxyBackendMode
|
*lc.BackendMode = sdk.ProxyBackendMode
|
||||||
lcId, err := str.CreateLimitClass(lc, trx)
|
lcId, err := str.CreateLimitClass(lc, trx)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user