@@ -156,7 +156,10 @@ void main() {
156156
157157 final job = workflowJobTemplate (headSha: 'a' * 40 ).toWorkflowJob ();
158158 final result = await cahs.processWorkflowJob (job);
159- expect (result, MergeQueueHashStatus .build);
159+ expect (result, (
160+ status: MergeQueueHashStatus .build,
161+ contentHash: '1111111111111111111111111111111111111111' ,
162+ ));
160163 expect (
161164 firestoreService,
162165 existsInStorage (ContentAwareHashBuilds .metadata, [
@@ -186,7 +189,10 @@ void main() {
186189
187190 final job = workflowJobTemplate (headSha: 'b' * 40 ).toWorkflowJob ();
188191 final result = await cahs.processWorkflowJob (job);
189- expect (result, MergeQueueHashStatus .complete);
192+ expect (result, (
193+ contentHash: '1111111111111111111111111111111111111111' ,
194+ status: MergeQueueHashStatus .complete,
195+ ));
190196 });
191197
192198 test ('stacks multiple builds in one doc' , () async {
@@ -199,7 +205,10 @@ void main() {
199205
200206 job = workflowJobTemplate (headSha: 'b' * 40 ).toWorkflowJob ();
201207 final result = await cahs.processWorkflowJob (job);
202- expect (result, MergeQueueHashStatus .wait);
208+ expect (result, (
209+ contentHash: '1111111111111111111111111111111111111111' ,
210+ status: MergeQueueHashStatus .wait,
211+ ));
203212
204213 expect (
205214 firestoreService,
@@ -224,7 +233,10 @@ void main() {
224233
225234 job = workflowJobTemplate (headSha: 'b' * 40 ).toWorkflowJob ();
226235 final result = await cahs.processWorkflowJob (job);
227- expect (result, MergeQueueHashStatus .wait);
236+ expect (result, (
237+ contentHash: '1111111111111111111111111111111111111111' ,
238+ status: MergeQueueHashStatus .wait,
239+ ));
228240
229241 expect (
230242 firestoreService,
@@ -255,7 +267,7 @@ void main() {
255267 job,
256268 retry: const RetryOptions (maxAttempts: 5 , maxDelay: Duration .zero),
257269 );
258- expect (result, MergeQueueHashStatus .error);
270+ expect (result, (contentHash : '' , status : MergeQueueHashStatus .error) );
259271 });
260272 });
261273
0 commit comments