[devicelab] LUCI builder flag (#70702)

This commit is contained in:
Casey Hillers
2020-11-17 11:28:03 -08:00
committed by GitHub
parent 26ba1848b3
commit a228a17c57
3 changed files with 18 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ void main() {
final TaskResult result = TaskResult.success(<String, dynamic>{});
// This should not throw an error.
await cocoon.sendTaskResult(taskName: 'taskAbc', result: result);
await cocoon.sendTaskResult(builderName: 'builderAbc', result: result);
});
test('throws client exception on non-200 responses', () async {
@@ -106,7 +106,7 @@ void main() {
);
final TaskResult result = TaskResult.success(<String, dynamic>{});
expect(() => cocoon.sendTaskResult(taskName: 'taskAbc', result: result), throwsA(isA<ClientException>()));
expect(() => cocoon.sendTaskResult(builderName: 'builderAbc', result: result), throwsA(isA<ClientException>()));
});
});