File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,14 @@ func TestBackend_globalprefix(t *testing.T) {
110110 b .opt .GlobalPrefix = "v5/"
111111
112112 tester .DoBackendTests (t , b )
113- assert .Len (t , b .lastMarker , 0 )
113+ assert .Empty (t , b .lastMarker )
114+
115+ b = getBackend (ctx , t )
116+ b .opt .GlobalPrefix = "v6/"
117+ b .opt .UseUpdateMarker = true
118+
119+ tester .DoBackendTests (t , b )
120+ assert .NotEmpty (t , b .lastMarker )
114121}
115122
116123func TestBackend_recursive (t * testing.T ) {
Original file line number Diff line number Diff line change 77
88 "github.com/PowerDNS/simpleblob"
99 "github.com/stretchr/testify/assert"
10+ "github.com/stretchr/testify/require"
1011)
1112
1213// DoBackendTests tests a backend for conformance
@@ -41,6 +42,7 @@ func DoBackendTests(t *testing.T, b simpleblob.Interface) {
4142 ls , err = b .List (ctx , "foo-" )
4243 assert .NoError (t , err )
4344 assert .Equal (t , ls .Names (), []string {"foo-1" })
45+ require .NotEmpty (t , ls )
4446 assert .Equal (t , ls [0 ].Size , int64 (3 ))
4547 ls , err = b .List (ctx , "bar-" )
4648 assert .NoError (t , err )
You can’t perform that action at this time.
0 commit comments