Skip to content

Commit bf8ec82

Browse files
committed
add rpc module to gossamer start-up
1 parent 09e9de7 commit bf8ec82

File tree

5 files changed

+6
-1321
lines changed

5 files changed

+6
-1321
lines changed

tests/polkadotjs_test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "",
1010
"license": "ISC",
1111
"dependencies": {
12-
"@polkadot/api": "^3.11.1"
12+
"@polkadot/api": "2.8.1"
1313
},
1414
"devDependencies": {
1515
"chai": "^4.2.0",

tests/polkadotjs_test/start_polkadotjs_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ package polkadotjs_test
1717

1818
import (
1919
"fmt"
20+
"github.com/ChainSafe/gossamer/tests/utils"
21+
"github.com/stretchr/testify/require"
2022
"os"
2123
"os/exec"
2224
"strings"
2325
"testing"
24-
25-
"github.com/ChainSafe/gossamer/tests/utils"
26-
"github.com/stretchr/testify/require"
2726
)
2827

2928
var polkadotSuite = "polkadot"
@@ -44,7 +43,7 @@ func TestStartGossamerAndPolkadotAPI(t *testing.T) {
4443
command := "npx mocha ./test"
4544
parts := strings.Fields(command)
4645
data, err := exec.Command(parts[0], parts[1:]...).Output()
47-
require.NoError(t, err, data)
46+
require.NoError(t, err, fmt.Sprintf("%s", data))
4847

4948
//uncomment this to see log results from javascript tests
5049
//fmt.Printf("%s\n", data)

tests/polkadotjs_test/test/test-polkadot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,4 @@ describe('Testing polkadot.js/api calls:', function () {
147147
});
148148
});
149149

150-
});
150+
});

0 commit comments

Comments
 (0)