summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Campbell <ryanjcampbell@google.com>2017-07-12 09:27:12 -0700
committerRyan Campbell <ryanjcampbell@google.com>2017-07-12 09:27:12 -0700
commitb3e595b1c8750bb8e81468327ebae5d09d1dc3da (patch)
treeb62df3b7eb9691dcd8b875d1d63c1feea51f99c2
parentf28b57cfad33a830cc99114b24d1ec8618bc80a7 (diff)
downloaddashboard-b3e595b1c8750bb8e81468327ebae5d09d1dc3da.tar.gz
Fix bug in test case deserialization.
Bug in self-reference deserialization breaks persistence of state across skips. Properly initialize the test case run entity with the db entity ID. Test: staging Bug: 63621664 Change-Id: Iba8a9fd34a7d2e2091be600ebed1503017385cdd
-rw-r--r--src/main/java/com/android/vts/entity/TestCaseRunEntity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/android/vts/entity/TestCaseRunEntity.java b/src/main/java/com/android/vts/entity/TestCaseRunEntity.java
index b89ec7e..2b9eebd 100644
--- a/src/main/java/com/android/vts/entity/TestCaseRunEntity.java
+++ b/src/main/java/com/android/vts/entity/TestCaseRunEntity.java
@@ -162,7 +162,7 @@ public class TestCaseRunEntity implements DashboardEntity {
return null;
}
try {
- TestCaseRunEntity testCaseRun = new TestCaseRunEntity();
+ TestCaseRunEntity testCaseRun = new TestCaseRunEntity(e.getKey().getId());
if (e.hasProperty(TEST_CASE_NAMES) && e.hasProperty(RESULTS)) {
List<String> testCaseNames = (List<String>) e.getProperty(TEST_CASE_NAMES);
List<Long> results = (List<Long>) e.getProperty(RESULTS);