Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15414076
D13531.id32705.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
938 B
Referenced Files
None
Subscribers
None
D13531.id32705.diff
View Options
diff --git a/src/applications/harbormaster/storage/build/HarbormasterBuildUnitMessage.php b/src/applications/harbormaster/storage/build/HarbormasterBuildUnitMessage.php
--- a/src/applications/harbormaster/storage/build/HarbormasterBuildUnitMessage.php
+++ b/src/applications/harbormaster/storage/build/HarbormasterBuildUnitMessage.php
@@ -30,7 +30,7 @@
'namespace' => 'optional string',
'name' => 'string',
'result' => 'string',
- 'duration' => 'optional float',
+ 'duration' => 'optional float|int',
'path' => 'optional string',
'coverage' => 'optional map<string, wild>',
);
@@ -44,7 +44,7 @@
$obj->setNamespace(idx($dict, 'namespace', ''));
$obj->setName($dict['name']);
$obj->setResult($dict['result']);
- $obj->setDuration(idx($dict, 'duration'));
+ $obj->setDuration((float)idx($dict, 'duration'));
$path = idx($dict, 'path');
if (strlen($path)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 20 2025, 11:01 PM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7572793
Default Alt Text
D13531.id32705.diff (938 B)
Attached To
Mode
D13531: Allow unit test duration to be submitted as a float or an int
Attached
Detach File
Event Timeline
Log In to Comment