mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-28 11:25:20 +01:00
20 lines
275 B
Go
20 lines
275 B
Go
|
package bandwidthlimit
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestNoLimitConfig(t *testing.T) {
|
||
|
|
||
|
conf := NoLimitConfig()
|
||
|
|
||
|
err := ValidateConfig(conf)
|
||
|
require.NoError(t, err)
|
||
|
|
||
|
require.NotPanics(t, func() {
|
||
|
_ = WrapperFromConfig(conf)
|
||
|
})
|
||
|
}
|