We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8435c7 commit 782498aCopy full SHA for 782498a
1 file changed
internal/watch/detector_test.go
@@ -109,8 +109,7 @@ func TestDetectRestart_RestartCountDecrease(t *testing.T) {
109
// Should still detect via StartedAt change
110
if ev == nil {
111
t.Fatal("expected restart event from StartedAt change when count decreased")
112
- }
113
- if ev.RestartCount != 0 {
+ } else if ev.RestartCount != 0 {
114
t.Errorf("expected RestartCount=0, got %d", ev.RestartCount)
115
}
116
@@ -139,8 +138,7 @@ func TestDetectRestart_RestartCountIncrease_SameStartedAt(t *testing.T) {
139
138
ev := DetectRestart(prev, curr)
140
141
t.Fatal("expected event from RestartCount increase")
142
143
- if ev.Container != "app" {
+ } else if ev.Container != "app" {
144
t.Errorf("expected app, got %s", ev.Container)
145
146
0 commit comments