mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: Flaky tests
We had acceptance tests that were testing the contents of the post stream preview, not the contents of the eventual topic itself. This became apparent when I introduced a new promise which caused the tests to finish waiting for work properly. Before that, it was up to the speed of the execution, very spooky!
This commit is contained in:
@ -199,7 +199,9 @@ export default function() {
|
||||
|
||||
this.get("/t/280.json", () => response(fixturesByUrl["/t/280/1.json"]));
|
||||
this.get("/t/34.json", () => response(fixturesByUrl["/t/34/1.json"]));
|
||||
this.get("/t/280/20.json", () => response(fixturesByUrl["/t/280/1.json"]));
|
||||
this.get("/t/280/:post_number.json", () =>
|
||||
response(fixturesByUrl["/t/280/1.json"])
|
||||
);
|
||||
this.get("/t/28830.json", () => response(fixturesByUrl["/t/28830/1.json"]));
|
||||
this.get("/t/9.json", () => response(fixturesByUrl["/t/9/1.json"]));
|
||||
this.get("/t/12.json", () => response(fixturesByUrl["/t/12/1.json"]));
|
||||
|
Reference in New Issue
Block a user