From b50fdfbee18520ef501059a4b4430e4552f21966 Mon Sep 17 00:00:00 2001 From: George Date: Thu, 24 Oct 2024 20:07:46 -0700 Subject: [PATCH] Ignore the latest version since it matches the one being used --- cmd/soroban-rpc/internal/integrationtest/migrate_test.go | 5 +++-- cmd/soroban-rpc/internal/integrationtest/upgrade_test.go | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/soroban-rpc/internal/integrationtest/migrate_test.go b/cmd/soroban-rpc/internal/integrationtest/migrate_test.go index a12eae86..7358bc06 100644 --- a/cmd/soroban-rpc/internal/integrationtest/migrate_test.go +++ b/cmd/soroban-rpc/internal/integrationtest/migrate_test.go @@ -32,8 +32,9 @@ func TestMigrate(t *testing.T) { continue } if originVersion == "22.0.0-rc2" { - // This version of RPC wasn't published without a deb build number suffix. - originVersion = "22.0.0-rc2-100" + // This version of RPC can't be upgraded to since that's the one + // set in the soroban_rpc.yml file + continue } t.Run(originVersion, func(t *testing.T) { testMigrateFromVersion(t, originVersion) diff --git a/cmd/soroban-rpc/internal/integrationtest/upgrade_test.go b/cmd/soroban-rpc/internal/integrationtest/upgrade_test.go index efd26cb2..70f9343a 100644 --- a/cmd/soroban-rpc/internal/integrationtest/upgrade_test.go +++ b/cmd/soroban-rpc/internal/integrationtest/upgrade_test.go @@ -23,10 +23,11 @@ func TestUpgradeFrom20To21(t *testing.T) { test.UploadHelloWorldContract() - // Upgrade to protocol 21 and re-upload the contract, which should cause a caching of the contract - // estimations + // Upgrade to protocol 21 and re-upload the contract, which should cause a + // caching of the contract estimations test.UpgradeProtocol(21) - // Wait for the ledger to advance, so that the simulation library passes the right protocol number + // Wait for the ledger to advance, so that the simulation library passes the + // right protocol number rpcDB := test.GetDaemon().GetDB() initialLedgerSequence, err := db.NewLedgerEntryReader(rpcDB).GetLatestLedgerSequence(context.Background()) require.NoError(t, err)