Skip to content

Commit 632da65

Browse files
committed
[#2303] Updated migration 73 test comment
1 parent cc44f6d commit 632da65

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

backend/server/database/migrations_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,8 @@ func TestMigration71DropAppsWithNoDaemons(t *testing.T) {
945945
require.NoError(t, err)
946946
}
947947

948-
// Test that migration 72 backfills server_tag from the existing config JSON.
949-
func TestMigration72BackfillServerTag(t *testing.T) {
948+
// Test that migration 73 backfills server_tag from the existing config JSON.
949+
func TestMigration73BackfillServerTag(t *testing.T) {
950950
// Arrange
951951
db, _, teardown := dbtest.SetupDatabaseTestCase(t)
952952
defer teardown()
@@ -979,10 +979,13 @@ func TestMigration72BackfillServerTag(t *testing.T) {
979979
err = dbmodel.AddDaemon(db, daemonCA)
980980
require.NoError(t, err)
981981

982+
// Go down from the latest migration to version 72. It is
983+
// one before the migration that backfills the server tag.
982984
_, _, err = dbops.Migrate(db, "down", "72")
983985
require.NoError(t, err)
984986

985987
// Act
988+
// Run the migration 73 which should backfill the server tag.
986989
_, _, err = dbops.Migrate(db, "up")
987990
require.NoError(t, err)
988991

0 commit comments

Comments
 (0)