rpc: skip test if solc version doesn't match

pull/1221/head
obscuren 10 years ago
parent bc6031e7bb
commit 14994fa21b
  1. 2
      rpc/api_test.go

@ -35,7 +35,7 @@ func TestCompileSolidity(t *testing.T) {
if solc == nil {
t.Skip("no solc found: skip")
} else if solc.Version() != solcVersion {
t.Logf("WARNING: solc different version found (%v, test written for %v, may need to update)", solc.Version(), solcVersion)
t.Skip("WARNING: skipping test because of solc different version (%v, test written for %v, may need to update)", solc.Version(), solcVersion)
}
source := `contract test {\n` +
" /// @notice Will multiply `a` by 7." + `\n` +

Loading…
Cancel
Save