Skip to content

Commit

Permalink
add rpc module to gossamer start-up
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed May 13, 2021
1 parent 09e9de7 commit bf8ec82
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1,321 deletions.
2 changes: 1 addition & 1 deletion tests/polkadotjs_test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@polkadot/api": "^3.11.1"
"@polkadot/api": "2.8.1"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down
7 changes: 3 additions & 4 deletions tests/polkadotjs_test/start_polkadotjs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ package polkadotjs_test

import (
"fmt"
"github.com/ChainSafe/gossamer/tests/utils"
"github.com/stretchr/testify/require"
"os"
"os/exec"
"strings"
"testing"

"github.com/ChainSafe/gossamer/tests/utils"
"github.com/stretchr/testify/require"
)

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

//uncomment this to see log results from javascript tests
//fmt.Printf("%s\n", data)
Expand Down
2 changes: 1 addition & 1 deletion tests/polkadotjs_test/test/test-polkadot.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ describe('Testing polkadot.js/api calls:', function () {
});
});

});
});
Loading

0 comments on commit bf8ec82

Please sign in to comment.