diff --git a/conformance/runner_test.go b/conformance/runner_test.go index 1e72f0c31..5443cfc6a 100644 --- a/conformance/runner_test.go +++ b/conformance/runner_test.go @@ -4,6 +4,7 @@ import ( "bytes" "compress/gzip" "context" + "encoding/base64" "encoding/json" "io/ioutil" "os" @@ -195,6 +196,9 @@ func executeMessageVector(t *testing.T, vector *schema.TestVector) { if expected, actual := receipt.GasUsed, ret.GasUsed; expected != actual { t.Errorf("gas used of msg %d did not match; expected: %d, got: %d", i, expected, actual) } + if expected, actual := []byte(receipt.ReturnValue), ret.Return; !bytes.Equal(expected, actual) { + t.Errorf("return value of msg %d did not match; expected: %s, got: %s", i, base64.StdEncoding.EncodeToString(expected), base64.StdEncoding.EncodeToString(actual)) + } } // Once all messages are applied, assert that the final state root matches