This commit is contained in:
Christian Schwarz
2020-04-05 20:14:11 +02:00
parent 4e0574e7d4
commit 05852bde7a

View File

@ -8,6 +8,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/zrepl/zrepl/zfs" "github.com/zrepl/zrepl/zfs"
) )
@ -180,7 +181,7 @@ func TestCreateTXGRange(t *testing.T) {
Until: &CreateTXGRangeBound{0, &zfs.NilBool{B: true}}, Until: &CreateTXGRangeBound{0, &zfs.NilBool{B: true}},
}, },
configAllowZeroCreateTXG: true, configAllowZeroCreateTXG: true,
expectString: "~,0]", expectString: "~,0]",
expect: []testCaseExpectation{ expect: []testCaseExpectation{
{0, true}, {0, true},
{math.MaxUint64, false}, {math.MaxUint64, false},
@ -188,8 +189,8 @@ func TestCreateTXGRange(t *testing.T) {
}, },
}, },
{ {
name: "edgeUntilNegative", name: "edgeUntilNegative",
expectInvalid: true, expectInvalid: true,
configAllowZeroCreateTXG: true, configAllowZeroCreateTXG: true,
config: &CreateTXGRange{ config: &CreateTXGRange{
Until: &CreateTXGRangeBound{0, &zfs.NilBool{B: false}}, Until: &CreateTXGRangeBound{0, &zfs.NilBool{B: false}},