Skip to content

Commit

Permalink
Bump Core version to 21.0.0rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed May 16, 2024
1 parent 57ecad1 commit 9504b85
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/soroban-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ jobs:
SOROBAN_RPC_INTEGRATION_TESTS_ENABLED: true
SOROBAN_RPC_INTEGRATION_TESTS_CORE_MAX_SUPPORTED_PROTOCOL: ${{ matrix.protocol-version }}
SOROBAN_RPC_INTEGRATION_TESTS_CAPTIVE_CORE_BIN: /usr/bin/stellar-core
PROTOCOL_20_CORE_DEBIAN_PKG_VERSION: 21.0.0-1812.rc1.a10329cca.focal
PROTOCOL_20_CORE_DOCKER_IMG: stellar/unsafe-stellar-core:21.0.0-1812.rc1.a10329cca.focal
PROTOCOL_21_CORE_DEBIAN_PKG_VERSION: 21.0.0-1812.rc1.a10329cca.focal
PROTOCOL_21_CORE_DOCKER_IMG: stellar/unsafe-stellar-core:21.0.0-1812.rc1.a10329cca.focal
PROTOCOL_20_CORE_DEBIAN_PKG_VERSION: 21.0.0-1865.rc2.c6f474133.focal
PROTOCOL_20_CORE_DOCKER_IMG: stellar/unsafe-stellar-core:21.0.0-1865.rc2.c6f474133.focal
PROTOCOL_21_CORE_DEBIAN_PKG_VERSION: 21.0.0-1865.rc2.c6f474133.focal
PROTOCOL_21_CORE_DOCKER_IMG: stellar/unsafe-stellar-core:21.0.0-1865.rc2.c6f474133.focal
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
# Note: Please keep the image pinned to an immutable tag matching the Captive Core version.
# This avoids implicit updates which break compatibility between
# the Core container and captive core.
image: ${CORE_IMAGE:-stellar/unsafe-stellar-core:20.4.1-1807.b152dc51d.focal}
image: ${CORE_IMAGE:-stellar/stellar-core:21.0.0-1865.rc2.c6f474133.focal}
depends_on:
- core-postgres
restart: on-failure
Expand Down
22 changes: 22 additions & 0 deletions cmd/soroban-rpc/internal/test/get_fee_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/creachadair/jrpc2"
"github.com/creachadair/jrpc2/jhttp"
<<<<<<< Updated upstream

Check failure on line 9 in cmd/soroban-rpc/internal/test/get_fee_stats_test.go

View workflow job for this annotation

GitHub Actions / golangci

missing import path (typecheck)

Check failure on line 9 in cmd/soroban-rpc/internal/test/get_fee_stats_test.go

View workflow job for this annotation

GitHub Actions / Integration tests (ubuntu-20.04, 1.22, 20)

missing import path

Check failure on line 9 in cmd/soroban-rpc/internal/test/get_fee_stats_test.go

View workflow job for this annotation

GitHub Actions / Integration tests (ubuntu-20.04, 1.22, 21)

missing import path

Check failure on line 9 in cmd/soroban-rpc/internal/test/get_fee_stats_test.go

View workflow job for this annotation

GitHub Actions / Integration tests (ubuntu-22.04, 1.22, 20)

missing import path

Check failure on line 9 in cmd/soroban-rpc/internal/test/get_fee_stats_test.go

View workflow job for this annotation

GitHub Actions / Integration tests (ubuntu-22.04, 1.22, 21)

missing import path

Check failure on line 9 in cmd/soroban-rpc/internal/test/get_fee_stats_test.go

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-22.04, 1.22)

missing import path
"github.com/stellar/go/keypair"
"github.com/stellar/go/txnbuild"
"github.com/stellar/go/xdr"
Expand All @@ -16,11 +17,21 @@ import (
)

func TestGetFeeStats(t *testing.T) {
=======

Check failure on line 20 in cmd/soroban-rpc/internal/test/get_fee_stats_test.go

View workflow job for this annotation

GitHub Actions / golangci

expected statement, found '==' (typecheck)
"github.com/stretchr/testify/assert"

"github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ledgerbucketwindow"
"github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods"
)

func TestHealth(t *testing.T) {
>>>>>>> Stashed changes
test := NewTest(t, nil)

ch := jhttp.NewChannel(test.sorobanRPCURL(), nil)
client := jrpc2.NewClient(ch, nil)

<<<<<<< Updated upstream
sourceAccount := keypair.Root(StandaloneNetworkPassphrase)
address := sourceAccount.Address()
account := txnbuild.NewSimpleAccount(address, 0)
Expand Down Expand Up @@ -119,4 +130,15 @@ func TestGetFeeStats(t *testing.T) {
assert.Greater(t, result.InclusionFee.LedgerCount, uint32(0))
assert.Greater(t, result.SorobanInclusionFee.LedgerCount, uint32(0))
assert.Greater(t, result.LatestLedger, uint32(0))
=======
var result methods.HealthCheckResult
if err := client.CallResult(context.Background(), "getHealth", nil, &result); err != nil {
t.Fatalf("rpc call failed: %v", err)
}
assert.Equal(t, "healthy", result.Status)
assert.Equal(t, uint32(ledgerbucketwindow.DefaultEventLedgerRetentionWindow), result.LedgerRetentionWindow)
assert.Greater(t, result.OldestLedger, uint32(0))
assert.Greater(t, result.LatestLedger, uint32(0))
assert.GreaterOrEqual(t, result.LatestLedger, result.OldestLedger)
>>>>>>> Stashed changes
}

0 comments on commit 9504b85

Please sign in to comment.