test(migrations): expect the Monitor SKU after 0034
TestMigrate_productsSeedMatchesDefaults still expected the SKU list before 0034 (#152). CI does not run the migrations package, so it went unnoticed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7dda6da5a
commit
d64fc342d1
1 file changed
+2
-1
@@ -627,7 +627,8 @@ func TestMigrate_productsSeedMatchesDefaults(t *testing.T) {
|
||||
if _, err := db.Exec(string(up)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if skus, _ := seeded("pruefwerk"); fmt.Sprint(skus) != "[CRA-CSA-CLD-STD CRA-CSA-CLD-BUS CRA-CSA-CLD-ENT CRA-CSA-CLD-SCAN CRA-CSA-CLD-TGT CRA-CSA-CLD-DAY]" {
|
||||
// 0034 (Monitor) is applied too.
|
||||
if skus, _ := seeded("pruefwerk"); fmt.Sprint(skus) != "[CRA-CSA-CLD-STD CRA-CSA-CLD-BUS CRA-CSA-CLD-ENT CRA-CSA-CLD-SCAN CRA-CSA-CLD-TGT CRA-CSA-CLD-DAY CRA-CSA-CLD-MON]" {
|
||||
t.Errorf("0026 twice: %v", skus)
|
||||
}
|
||||
if err := m.Migrate(25); err != nil {
|
||||
|
||||
Reference in new issue
Block a user