[canvaskit] Increase timeout and add logging to further diagnose test flakiness

Bug: skia:8810
Change-Id: Ie1ddbd70a7521aaf7bd0e9fda7ad7a53a01db4b7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/198600
Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
Kevin Lubick 2019-03-07 08:43:11 -05:00
parent be27245416
commit ec841f71ee
3 changed files with 8 additions and 4 deletions

View File

@ -41,8 +41,8 @@ module.exports = function(config) {
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
browserDisconnectTimeout: 15000,
browserNoActivityTimeout: 15000,
browserDisconnectTimeout: 20000,
browserNoActivityTimeout: 20000,
// start these browsers
browsers: ['Chrome'],

View File

@ -42,8 +42,8 @@ module.exports = function(config) {
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
browserDisconnectTimeout: 15000,
browserNoActivityTimeout: 15000,
browserDisconnectTimeout: 20000,
browserNoActivityTimeout: 20000,
// start these browsers
browsers: ['Chrome'],

View File

@ -7,7 +7,11 @@ const LoadCanvasKit = new Promise(function(resolve, reject) {
CanvasKitInit({
locateFile: (file) => '/canvaskit/'+file,
}).ready().then((loaded) => {
console.log('canvaskit loaded', new Date());
CanvasKit = loaded;
resolve();
}).catch((e) => {
console.error('canvaskit failed to load', new Date(), e);
reject();
});
});