Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: go/src/infra/monitoring/analyzer/test_failures_test.go

Issue 1125263004: dispatcher: fix test result parsing, build ranges for failure alerts, other fixes (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: added comments, some bounds/type assertion checks Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: go/src/infra/monitoring/analyzer/test_failures_test.go
diff --git a/go/src/infra/monitoring/analyzer/test_failures_test.go b/go/src/infra/monitoring/analyzer/test_failures_test.go
index 8ab1afd111a722057910d61cbb854f3d7f4f8b47..7a61e37911fd1c69fcb99fb53e57a4bfed9b000b 100644
--- a/go/src/infra/monitoring/analyzer/test_failures_test.go
+++ b/go/src/infra/monitoring/analyzer/test_failures_test.go
@@ -43,10 +43,10 @@ func TestTestStepFailureAlerts(t *testing.T) {
},
},
testResults: &messages.TestResults{
- Tests: map[string]messages.TestResult{
- "test_a": messages.TestResult{
- Expected: "PASS",
- Actual: "FAIL",
+ Tests: map[string]interface{}{
+ "test_a": map[string]interface{}{
+ "expected": "PASS",
+ "actual": "FAIL",
},
},
},

Powered by Google App Engine
This is Rietveld 408576698