Skip to content

Commit

Permalink
Ignore the latest version since it matches the one being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Oct 25, 2024
1 parent fbfc019 commit b50fdfb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions cmd/soroban-rpc/internal/integrationtest/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 4 additions & 3 deletions cmd/soroban-rpc/internal/integrationtest/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b50fdfb

Please sign in to comment.