Phase 3 — Alerts (P3-05/06/07) #7
@@ -24,9 +24,14 @@ func TestMigration0013AlertsLastSeen(t *testing.T) {
|
|||||||
cols := map[string]bool{}
|
cols := map[string]bool{}
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
var n string
|
var n string
|
||||||
_ = rows.Scan(&n)
|
if err := rows.Scan(&n); err != nil {
|
||||||
|
t.Fatalf("scan: %v", err)
|
||||||
|
}
|
||||||
cols[n] = true
|
cols[n] = true
|
||||||
}
|
}
|
||||||
|
if err := rows.Err(); err != nil {
|
||||||
|
t.Fatalf("rows iter: %v", err)
|
||||||
|
}
|
||||||
if !cols["last_seen_at"] {
|
if !cols["last_seen_at"] {
|
||||||
t.Fatalf("alerts.last_seen_at not present after migration; cols=%v", cols)
|
t.Fatalf("alerts.last_seen_at not present after migration; cols=%v", cols)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user