mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Revert Ember.run refactors
This reverts commit 5ca60fcb6b592524086f98279d3e4fd949598343.
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
import { run } from "@ember/runloop";
|
||||
import { later } from "@ember/runloop";
|
||||
/* global QUnit, resetSite */
|
||||
|
||||
import sessionFixtures from "fixtures/session-fixtures";
|
||||
@ -157,7 +155,7 @@ export function controllerFor(controller, model) {
|
||||
export function asyncTestDiscourse(text, func) {
|
||||
QUnit.test(text, function(assert) {
|
||||
const done = assert.async();
|
||||
run(() => {
|
||||
Ember.run(() => {
|
||||
func.call(this, assert);
|
||||
done();
|
||||
});
|
||||
@ -208,7 +206,7 @@ export function waitFor(assert, callback, timeout) {
|
||||
timeout = timeout || 500;
|
||||
|
||||
const done = assert.async();
|
||||
later(() => {
|
||||
Ember.run.later(() => {
|
||||
callback();
|
||||
done();
|
||||
}, timeout);
|
||||
|
Reference in New Issue
Block a user