Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b88ed4bfd2 | ||
|
|
1dcb1531d0 |
@@ -93,7 +93,9 @@ func TestRecoveryIsLogged(t *testing.T) {
|
|||||||
time.Sleep(50 * time.Millisecond)
|
time.Sleep(50 * time.Millisecond)
|
||||||
}
|
}
|
||||||
cancel()
|
cancel()
|
||||||
<-done
|
if err := <-done; err != nil {
|
||||||
|
t.Errorf("Run() = %v", err)
|
||||||
|
}
|
||||||
out := logs.String()
|
out := logs.String()
|
||||||
for _, want := range []string{`"msg":"polling for jobs works again"`, `"failures":1`, `"msg":"reporting results works again"`, `"sent":1`} {
|
for _, want := range []string{`"msg":"polling for jobs works again"`, `"failures":1`, `"msg":"reporting results works again"`, `"sent":1`} {
|
||||||
if !strings.Contains(out, want) {
|
if !strings.Contains(out, want) {
|
||||||
|
|||||||
Reference in new issue
Block a user