mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
* Shutdown Doc worker when it is not considered as available in Redis * Use isAffirmative for GRIST_MANAGED_WORKERS * Upgrade Sinon for the tests * Run Smoke test with pages in English * Add logic in /status endpoint
This commit is contained in:
@@ -46,7 +46,7 @@ describe('SafeBrowser', function() {
|
||||
|
||||
browserProcesses = [];
|
||||
sandbox.stub(SafeBrowser, 'createWorker').callsFake(createProcess);
|
||||
sandbox.stub(SafeBrowser, 'createView').callsFake(createProcess);
|
||||
sandbox.stub(SafeBrowser, 'createView').callsFake(createProcess as any);
|
||||
sandbox.stub(PluginInstance.prototype, 'getRenderTarget').returns(noop);
|
||||
disposeSpy = sandbox.spy(Disposable.prototype, 'dispose');
|
||||
});
|
||||
|
||||
@@ -153,9 +153,8 @@ describe('dispose', function() {
|
||||
assert.equal(baz.dispose.callCount, 1);
|
||||
assert(baz.dispose.calledBefore(bar.dispose));
|
||||
|
||||
const name = consoleErrors[0][1]; // may be Foo, or minified.
|
||||
assert(name === 'Foo' || name === 'o'); // this may not be reliable,
|
||||
// just what I happen to see.
|
||||
const name = consoleErrors[0][1];
|
||||
assert(name === Foo.name);
|
||||
assert.deepEqual(consoleErrors[0], ['Error constructing %s:', name, 'Error: test-error1']);
|
||||
assert.deepEqual(consoleErrors[1], ['Error constructing %s:', name, 'Error: test-error2']);
|
||||
assert.deepEqual(consoleErrors[2], ['Error constructing %s:', name, 'Error: test-error3']);
|
||||
|
||||
Reference in New Issue
Block a user