GSMA-CPAS / BWRP-chaincode

Apache License 2.0
1 stars 0 forks source link

go test: TestOffchainDBConfig fails when using proxy #45

Closed sschulz-t closed 3 years ago

sschulz-t commented 3 years ago

The test case TestOffchainDBConfig fails when the go test routine uses a proxy.

The second part tests the CheckOffchainDBConfig() function. When using a proxy, the part that uses a "unreachable" offchain db (0.1.2.3) will time out/block for a long time in SetOffchainDBConfig. We should use a different way to test for invalid configs. Maybe it is a good idea to move testing of CheckOffchainDBConfig to a separate test as well.

reproduce: use proxy and run go test --run TestOffchainDBConfig