By default this is the content of the file truffle.js
:
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
};
When I execute the command truffle test
with the above configuration, it work well. However, if I change the configuration to this:
module.exports = {
networks: {
test: {
network_id: '*',
gas: 4712388,
gasPrice: 10
}
}
};
When I execute the command truffle test
I get the following error:
Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)
I tried setting options host
and port
but still not working.
I'm using Truffle v4.1.14 on Mac.