aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/runtime
diff options
context:
space:
mode:
authorGravatar shahan <shahan@google.com>2018-03-10 05:14:09 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-10 05:15:51 -0800
commit50f99d56bb710f01524bd3f04882dada16a792c3 (patch)
tree09e3902e29ebf3a8a7d41db5af4d310989fbe591 /src/test/java/com/google/devtools/build/lib/runtime
parentdeccc485603c004daad959fd747f1c0c9efc4f00 (diff)
ActionOwner references only BuildEvent instead of full BuildConfiguration
This reduces the size of its serialized representation. PiperOrigin-RevId: 188597127
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/runtime')
-rw-r--r--src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
index e2447f10ca..9ff8d76bda 100644
--- a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
+++ b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
@@ -650,9 +650,9 @@ public class BuildEventStreamerTest extends FoundationTestCase {
BuildConfiguration.Options.class)),
"workspace");
BuildEvent firstWithConfiguration =
- new GenericConfigurationEvent(testId("first"), configuration);
+ new GenericConfigurationEvent(testId("first"), configuration.toBuildEvent());
BuildEvent secondWithConfiguration =
- new GenericConfigurationEvent(testId("second"), configuration);
+ new GenericConfigurationEvent(testId("second"), configuration.toBuildEvent());
streamer.buildEvent(startEvent);
streamer.buildEvent(firstWithConfiguration);
@@ -663,7 +663,7 @@ public class BuildEventStreamerTest extends FoundationTestCase {
assertThat(allEventsSeen).hasSize(7);
assertThat(allEventsSeen.get(0).getEventId()).isEqualTo(startEvent.getEventId());
assertThat(allEventsSeen.get(1).getEventId()).isEqualTo(ProgressEvent.INITIAL_PROGRESS_UPDATE);
- assertThat(allEventsSeen.get(2)).isEqualTo(configuration);
+ assertThat(allEventsSeen.get(2)).isEqualTo(configuration.toBuildEvent());
assertThat(allEventsSeen.get(3).getEventId()).isEqualTo(BuildEventId.progressId(1));
assertThat(allEventsSeen.get(4)).isEqualTo(firstWithConfiguration);
assertThat(allEventsSeen.get(5).getEventId()).isEqualTo(BuildEventId.progressId(2));