mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
test: witness the offline cut timer deadline
This commit is contained in:
1 parent
296bb664d2
commit
49f083acdf
1 file changed
+5
@@ -42,6 +42,11 @@ func TestOfflineSealUsesCallerDeadline(t *testing.T) {
|
||||
}
|
||||
deadline, _ := ctx.Deadline()
|
||||
observed := false
|
||||
durable.SetTestDetachTrace(p, func(stage string, got time.Time) {
|
||||
if stage == "cut" && !got.Equal(deadline) {
|
||||
t.Errorf("offline seal inherited live cut deadline: got %v want caller %v", got, deadline)
|
||||
}
|
||||
})
|
||||
durable.SetTestDetachStopIO(p, func(c context.Context) error {
|
||||
observed = true
|
||||
got, ok := c.Deadline()
|
||||
|
||||
Reference in new issue
Block a user