--- Thread state ---
(t *testing.T)
| 229 | v.Update(current) |
| 230 | v.Update(stale) |
| 231 | |
| 232 | if len(v.postingList.postings) != 1 || v.postingList.postings[0].ID != 300 { |
| 233 | t.Errorf("an earlier box visit overwrote the current postings: %v", v.postingList.postings) |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | func TestMailViewReportsCurrentPostingLoadFailure(t *testing.T) { |
| 238 | v, _ := mailWithTestServer(t, http.StatusBadRequest) |
| 239 | |
| 240 | failed, ok := runCmd(v.SubnavRight()).(postingsLoadedMsg) |
| 241 | if !ok || failed.err == nil { |
| 242 | t.Fatalf("posting load returned %#v, want an error", failed) |
| 243 | } |
| 244 | cmd, consumed := v.Update(failed) |
| 245 | |
| 246 | if !consumed || cmd == nil { |
| 247 | t.Fatal("current posting load error should be reported") |
nothing calls this directly
no test coverage detected