Skip to content

Commit 2d5ead1

Browse files
fix(tests/polkadot_js): Use westend-local to run polkadot js test suite (#3052)
1 parent 650371e commit 2d5ead1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/polkadotjs_test/start_polkadotjs_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import (
1919

2020
var polkadotSuite = "polkadot"
2121

22-
// TODO: add test against latest dev runtime
23-
// See https://github.com/ChainSafe/gossamer/issues/2705
2422
func TestStartGossamerAndPolkadotAPI(t *testing.T) {
2523
if utils.MODE != polkadotSuite {
2624
t.Log("Going to skip polkadot.js/api suite tests")
@@ -48,7 +46,7 @@ func TestStartGossamerAndPolkadotAPI(t *testing.T) {
4846
t.Log("starting gossamer for polkadot.js/api tests...")
4947

5048
tomlConfig := config.Default()
51-
tomlConfig.Init.Genesis = libutils.GetDevV3SubstrateGenesisPath(t)
49+
tomlConfig.Init.Genesis = libutils.GetWestendLocalRawGenesisPath(t)
5250
tomlConfig.Core.BABELead = true
5351
tomlConfig.RPC.WS = true
5452
tomlConfig.RPC.Unsafe = true

tests/polkadotjs_test/test/test-polkadot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('Testing polkadot.js/api calls:', function () {
5656
it('call api.runtimeVersion', async function () {
5757
const runtimeVersion = await api.runtimeVersion;
5858
expect(runtimeVersion).to.be.not.null;
59-
expect(runtimeVersion).to.have.property('specName').contains('node')
59+
expect(runtimeVersion).to.have.property('specName').contains('westend');
6060
expect(runtimeVersion).to.have.property('apis').lengthOf.above(10)
6161
});
6262

@@ -116,7 +116,7 @@ describe('Testing polkadot.js/api calls:', function () {
116116
describe('api system', () => {
117117
it('call api.rpc.system.chain()', async function () {
118118
const chain = await api.rpc.system.chain();
119-
expect(chain).to.contain('Gossamer');
119+
expect(chain).to.contain('Westend')
120120
});
121121

122122
it('call api.rpc.system.properties()', async function () {

0 commit comments

Comments
 (0)