mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 01:44:43 +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)
|
|
})
|
|
}
|