We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d527926 + 18321f5 commit 34fb8d8Copy full SHA for 34fb8d8
1 file changed
integration/client/restart_monitor_linux_test.go
@@ -81,7 +81,7 @@ version = 2
81
task.Kill(ctx, syscall.SIGKILL)
82
begin := time.Now()
83
deadline := begin.Add(interval).Add(epsilon)
84
- for time.Now().Before(deadline) {
+ for {
85
status, err := task.Status(ctx)
86
now := time.Now()
87
if err != nil {
@@ -97,10 +97,13 @@ version = 2
97
return
98
}
99
100
+ if time.Now().After(deadline) {
101
+ break
102
+ }
103
time.Sleep(epsilon)
104
- t.Fatalf("the task was not restarted in %s + %s",
- interval.String(), epsilon.String())
105
+ t.Fatalf("%v: the task was not restarted in %s + %s",
106
+ time.Now(), interval.String(), epsilon.String())
107
108
109
// withRestartStatus is a copy of "github.com/containerd/containerd/runtime/restart".WithStatus.
0 commit comments