Bug 169648

Summary: Make server tests return a promise instead of manually calling done
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Perf DashboardAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, dewei_zhu, joepeck, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Cleanup the tests
none
Cleaned up some more cdumez: review+

Description Ryosuke Niwa 2017-03-14 17:21:49 PDT
Right now, some old mocha tests in server-tests are manually calling done.
Return a promise instead since the latest mocha.js supports that,
and manually calling done turned out be error prone.
Comment 1 Ryosuke Niwa 2017-03-14 17:26:37 PDT
Created attachment 304449 [details]
Cleanup the tests
Comment 2 Ryosuke Niwa 2017-03-14 19:38:58 PDT
Created attachment 304465 [details]
Cleaned up some more
Comment 3 Chris Dumez 2017-03-14 19:48:08 PDT
Comment on attachment 304465 [details]
Cleaned up some more

rs=me
Comment 4 Ryosuke Niwa 2017-03-14 20:18:57 PDT
Thanks!
Comment 5 Ryosuke Niwa 2017-03-14 20:19:05 PDT
Committed r213969: <http://trac.webkit.org/changeset/213969>