Commit b58fd61f44
Verified · cmc
e2e/push_test.go +6 −2
| @@ -134,8 +134,12 @@ environment = "production" | ||
| 134 | 134 | t.Fatalf("issue comment: %s%s", out, errOut) |
| 135 | 135 | } |
| 136 | 136 | waitFor(t, "the device to be reaped after a 410", func() bool { |
| 137 | out, _, _ := inst.ssh(t, bobKey, "", "notifications", "device", "list", "--json") | |
| 138 | return !strings.Contains(out, "iphone") | |
| 137 | // This is an absence check, unlike every other waitFor in the | |
| 138 | // suite: a transient ssh failure returns empty stdout, which | |
| 139 | // would otherwise read as a false "reaped". The exit code rules | |
| 140 | // that out. | |
| 141 | out, _, code := inst.ssh(t, bobKey, "", "notifications", "device", "list", "--json") | |
| 142 | return code == 0 && !strings.Contains(out, "iphone") | |
| 139 | 143 | }) |
| 140 | 144 | |
| 141 | 145 | // The inbox is untouched by any of it: push is a side channel. |