Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Ignore flaky tracing tests #1907

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ private void jsonRPCCall(final URL specFile) throws IOException {
final String json = Resources.toString(specFile, Charsets.UTF_8);
final ObjectNode specNode = (ObjectNode) objectMapper.readTree(json);

// TODO remove when https://github.com/PegaSysEng/pantheon/pull/1886 is merged
// temporary ignore flaky tests
if (specNode.has("ignored") && specNode.get("ignored").asBoolean()) {
System.err.println("Ignored test.");
return;
}

final String rawRequestBody = specNode.get("request").toString();
final RequestBody requestBody = RequestBody.create(JSON, rawRequestBody);
final Request request = new Request.Builder().post(requestBody).url(baseUrl).build();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignored": true,
"request": {
"jsonrpc": "2.0",
"method": "trace_replayBlockTransactions",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignored": true,
"request": {
"jsonrpc": "2.0",
"method": "trace_replayBlockTransactions",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignored": true,
"request": {
"id": 415,
"jsonrpc": "2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignored": true,
"request": {
"id": 415,
"jsonrpc": "2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignored": true,
"request": {
"id": 415,
"jsonrpc": "2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
{
"ignored": true,
"request": {
"id": 415,
"jsonrpc": "2.0",
"method": "trace_replayBlockTransactions",
"params": [
"pending",
["trace","vmTrace","stateDiff"]
[
"trace",
"vmTrace",
"stateDiff"
]
]
},
"response": {
"jsonrpc": "2.0",
"id": 415,
"result": [{}]
"result": [
{}
]
},
"statusCode": 200
}