We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TestGCOperations
1 parent 0a621b4 commit 6718ae5Copy full SHA for 6718ae5
tests/server/gc/gc_test.go
@@ -350,7 +350,9 @@ func TestGCOperations(t *testing.T) {
350
re.Nil(resp.Header.Error)
351
re.Equal("b1", resp.GetDeletedBarrierInfo().GetBarrierId())
352
re.Equal(uint64(20), resp.GetDeletedBarrierInfo().GetBarrierTs())
353
- re.Equal(3600, int(resp.GetDeletedBarrierInfo().GetTtlSeconds()))
+ // The TTL value decreases over time
354
+ re.Greater(resp.GetDeletedBarrierInfo().GetTtlSeconds(), int64(3595))
355
+ re.LessOrEqual(resp.GetDeletedBarrierInfo().GetTtlSeconds(), int64(3600))
356
}
357
358
for _, keyspaceID := range []uint32{constant.NullKeyspaceID, ks1.Id} {
0 commit comments